NativeScript / nativescript-schematics

nativescript, mobile, schematics, angular
Apache License 2.0
186 stars 26 forks source link

Angular 11 compatibility #307

Open betosalvador opened 3 years ago

betosalvador commented 3 years ago

Hi everyone.

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

thanks in advance

agonper commented 3 years ago

This is fixed in #314

agonper commented 3 years ago

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

iameduardod commented 3 years ago

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

agonper commented 3 years ago

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.

iameduardod commented 3 years ago

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/cli@11.2 @angular/core@11.2
  4. npm install --save-dev typescript@4.1
  5. npm install --save-dev @nativescript/schematics@11.2.0-rc.0
agonper commented 3 years ago

@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

nativescript-schematics@11.2.0 are only guaranteed to work for NS NG component and module generation only.

iameduardod commented 3 years ago

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

agonper commented 3 years ago

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

iameduardod commented 3 years ago

@agonper Thank you so much for the insights!