narouz
narouz

Reputation: 215

Upgrade from angular 8.2 to angular 9 issue

When Upgrading from angular 8.2 to angular 9 I got this error

An unhandled exception occurred: Cannot find module '@angular-devkit/schematics'

How can I overcome this error?


this is the used command:

ng update @angular/core @angular/cli --next

Upvotes: 3

Views: 3087

Answers (3)

Otman Yazigh
Otman Yazigh

Reputation: 241

You should update all libraries inside your project. If you want to update libraries one by one, first identify them using the following command:

ng update 

Next update the identified packages, for example:

ng update @angular/core @angular/cli

If you want to automatically update all, use the --all and --force switches with the ng udpate command as follows:

ng update --all --force

Check out this example tutorial.

Upvotes: 2

Javed
Javed

Reputation: 303

If you are still looking for updation from angular 8 to 9, just do the following:

ng update @angular/core @angular/cli

If still some problems exists with dependencies or something else just force all to update:

ng update --all --force

check your angular version by using:

ng --version

Upvotes: 0

narouz
narouz

Reputation: 215

I can overcome this issue when running this command before the update command

npm i --save-dev @angular-devkit/schematics

Upvotes: 2

Related Questions