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

Is there a way to easily upgrade all angular deps to the latest?

Open jannomeister opened this issue 4 years ago • 8 comments

The outdated nativescript upgrade docs has a command to upgrade all angular deps to the latest by:

npm i nativescript-angular@latest --save
./node_modules/.bin/update-app-ng-deps
npm i

but now in nativescript 7 it doesn't have a straightforward way to upgrade it :( or am I missing something?

jannomeister avatar Mar 03 '21 05:03 jannomeister

@nativescript/angular ^11.0.0

Then all @angular deps to ~11.2.0

@nativescript/core ~7.3.0

I mean that’s about it.

NathanWalker avatar Mar 03 '21 06:03 NathanWalker

thanks @NathanWalker I'll give it a try before closing this issue. :)

jannomeister avatar Mar 03 '21 06:03 jannomeister

Another good practice that’s easy to do is: npm install -g nativescript To make sure you have latest cli installed and then: ns create sample —ng

and just compare it to yours in terms of tsconfig and that kind of stuff. You can use latest angular versions as stated above but yeah that’s another simple way to just check other things.

NathanWalker avatar Mar 03 '21 06:03 NathanWalker

I tried to upgrade earlier to v7, but the nativescript-ui-sidedrawer having some problem with references.d.ts stuffs when I run ns run ios that's why I downgraded again to nativescript-cli to v6.5.1

PS: the version of nativescript-ui-sidedrawer is v9.03

jannomeister avatar Mar 03 '21 06:03 jannomeister

after upgrading nativescript to v7.2.0

when I execute ns create sample —ng im having this error:

Screen Shot 2021-03-03 at 3 06 57 PM

my node version is v12.16.3

jannomeister avatar Mar 03 '21 07:03 jannomeister

Check your npm version, npm7 isn't supported just yet, try with v6!

rigor789 avatar Mar 03 '21 12:03 rigor789

thanks @rigor789 ill try it tomorrow 🙂

jannomeister avatar Mar 03 '21 13:03 jannomeister

I'm having this errors from the nativescript-ui-* packages. Their versions are all latest

Screen Shot 2021-03-04 at 11 08 17 AM

jannomeister avatar Mar 04 '21 03:03 jannomeister