我正在Traversy Media
的{{1}}堆栈前面YouTube
前后播放列表
导入flash消息后,MEAN
发出错误,我无法理解。我读过很少console
个问题页面,但它们没有任何结果。
gitHub
我的ERROR in Error: Metadata version mismatch for module B:/Shall/Practice/meanauthapp/angular-src/node_modules/angular2-flash-messages/module/index.d.ts, found version 4, expected 3, resolving symbol AppModule in B:/Shall/Practice/meanauthapp/angular-src/src/app/app.module.ts, resolving symbol AppModule in B:/Shall/Practice/meanauthapp/angular-src/src/app/app.module.ts
at SyntaxError.BaseError [as constructor] (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler\bundles\compiler.umd.js:1597:31)
at new SyntaxError (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler\bundles\compiler.umd.js:1795:20)
at simplifyInContext (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler\bundles\compiler.umd.js:25774:27)
at StaticReflector.simplify (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler\bundles\compiler.umd.js:25786:17)
at StaticReflector.annotations (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler\bundles\compiler.umd.js:25282:64)
at _getNgModuleMetadata (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler-cli\src\ngtools_impl.js:126:31)
at _extractLazyRoutesFromStaticModule (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler-cli\src\ngtools_impl.js:101:26)
at Object.listLazyRoutesOfModule (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler-cli\src\ngtools_impl.js:52:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@angular\compiler-cli\src\ngtools_api.js:78:39)
at AotPlugin._getLazyRoutesFromNgtools (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@ngtools\webpack\src\plugin.js:241:66)
at _donePromise.Promise.resolve.then.then.then.then.then (B:\Shall\Practice\meanauthapp\angular-src\node_modules\@ngtools\webpack\src\plugin.js:495:24)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
文件如下:
package.json
答案 0 :(得分:1)
如果这很重要或没有, 但有人建议我做npm install @ angualr2-flash-messages @ 1.0.8
和瞧!有效!建议一些其他可能证明这一点的技术细节。