Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR in ./src/polyfills.ts Module not found: Error: Can't resolve 'zone.js/dist/zone'

I have an angular 8, that uses karma/jasmine to run some unit tests. I can run tests by executing the following command ng test but I'm getting the following error:

ERROR in ./src/polyfills.ts Module not found: Error: Can't resolve 'zone.js/dist/zone' in 'C:\PrjNET\Elevation3\FW\4.00\Project\Framework\Development\Client\ElevationJS\shell\src' resolve 'zone.js/dist/zone' in 'C:\PrjNET\Elevation3\FW\4.00\Project\Framework\Development\Client\ElevationJS\shell\src'

Any one know how to solve it?

like image 437
Ricardo Rocha Avatar asked Dec 08 '22 11:12

Ricardo Rocha


1 Answers

I fixed it in my project with this command:

npm install [email protected] --save

I was getting this error using [email protected].

like image 122
djangofan Avatar answered Dec 28 '22 06:12

djangofan