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?
npm i zone.js
– Katizone.js/dist/zone
?. If yes try changing it toimport 'zone.js/dist/zone-testing';
Though zone-testing only exists fromzone.js 0.8.19
– Katiimport 'zone.js/dist/zone-testing'
). Also, I'm using the version0.8.29
– Morita