nativescript-schematics icon indicating copy to clipboard operation
nativescript-schematics copied to clipboard

Angular 11 compatibility

Open betosalvador opened this issue 5 years ago • 9 comments

Hi everyone.

Do you have any idea when the nativescript schematics will be updated to support angular 11??

thanks in advance

betosalvador avatar Nov 25 '20 11:11 betosalvador

This is fixed in #314

agonper avatar Apr 21 '21 12:04 agonper

This one too, @NathanWalker (sorry for the @mention spam)

agonper avatar Apr 21 '21 16:04 agonper

When will this be updated to for nativescript 8? @NathanWalker @agonper

iameduardod avatar Apr 22 '21 19:04 iameduardod

Hi @iameduardod, it should be working already with a minimal functionality if you install the schematics version 11.2.0-rc.0. You'll need Angular 11.2 and TypeScript ~4.1.0. Hope this helps.

If you can try it out, please share with us if it works for you.

agonper avatar Apr 22 '21 20:04 agonper

So these steps to update to from a clean base? @agonper

  1. ng new --collection=@nativescript/schematics my-test-app --shared
  2. tns migrate
  3. ng update @angular/[email protected] @angular/[email protected]
  4. npm install --save-dev [email protected]
  5. npm install --save-dev @nativescript/[email protected]

iameduardod avatar Apr 22 '21 20:04 iameduardod

@iameduardod I haven't tested with a shared project, but those dependency versions look good to me. Would be great to know if that still works.

However, if you are starting a fresh code sharing project with NS8 the recommendation from the NS team is to use any of these options instead: https://docs.nativescript.org/code-sharing

[email protected] are only guaranteed to work for NS NG component and module generation only.

agonper avatar Apr 23 '21 07:04 agonper

@agonper Thanks for sharing that link! Are those options going to replace nativescript-schematics? ETA for when nativescript-schematics will be sunset?

iameduardod avatar Apr 23 '21 15:04 iameduardod

Hi @iameduardod

Are those options going to replace nativescript-schematics?

For what the NS team says (source, slack community channel) that seems the plan, yes.

ETA for when nativescript-schematics will be sunset?

I cannot give you an answer to that question (I'm not part of the NS team, just helping them where I can). Perhaps @NathanWalker can give you an answer given he's in charge of the development of @nativescript/nx and @nstudio/xplat

agonper avatar Apr 23 '21 15:04 agonper

@agonper Thank you so much for the insights!

iameduardod avatar Apr 23 '21 15:04 iameduardod