problem
ng serve
Module build error: Error: AotPlugin was detected, but it was an instance of the wrong class.
Error Reporting Log
ERROR in ./src/main.ts
Module build failed: Error: AotPlugin was detected but it was an instance of the wrong class.
This likely means you have several @ngtools/webpack packages installed. You can check this with `npm ls @ngtools/webpack`, and then remove the extra copies.
at Object.ngcLoader
(D:\testingapp\node_modules\@ngtools\webpack\src\loader.js:358:19)
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
npm ls @ ngtools / webpack
testingapp@0.0.0 D:\testingapp
+-- @angular/cli@1.2.6
| `-- @ngtools/webpack@1.5.5
`-- angular-cli@1.0.0-beta.28.3
`-- @ngtools/webpack@1.5.1
npm cache check
there is still a problem.
- Any suggestion is welcome.
source
share