**ERROR in ./webapp/app/app.module.ngfactory.js
Module not found: Error: Can't resolve 'E:\production\node_modules\@angular\animations'
in 'E:\production\gateway\src\main\webapp\app'**
我发现这是由于错误的搜索路径引起的。它是
中的搜索模块"'E:\production\node_modules\"
但正确的路径是
"'E:\production\gateway\node_modules\".
我的webpack devDependencies是
"uglifyjs-webpack-plugin": "1.1.5",
"web-app-manifest-loader": "0.1.1",
"webpack": "3.10.0",
"webpack-dev-server": "2.9.5",
"webpack-merge": "4.1.1",
"webpack-notifier": "1.5.0",
"webpack-visualizer-plugin": "0.1.11",
和依赖是:
"@angular/animations": "6.1.0",
"@angular/cdk": "6.4.2",
"@angular/common": "6.1.0",
"@angular/compiler": "6.1.0",
"@angular/core": "6.1.0",
"@angular/forms": "6.1.0",
"@angular/http": "6.1.0",