3

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

Bill P
  • 3,622
  • 10
  • 20
  • 32
narouz
  • 195
  • 1
  • 2
  • 8

3 Answers3

2

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

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

narouz
  • 195
  • 1
  • 2
  • 8
2

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.

Otman Yazigh
  • 231
  • 2
  • 3
0

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
Javed
  • 253
  • 3
  • 5