ionic cordova build 成功,ionic cordova build --prod 报错


[15:45:34] ngc started ...
Error: Metadata version mismatch for module E:/ionic_project/wechat_restaurant/n
ode_modules/@ionic-native/core/decorators.d.ts, found version 4, expected 3
at StaticSymbolResolver.getModuleMetadata (E:\ionic_project\wechat_restauran
t\node_modules\@angular\compiler\bundles\compiler.umd.js:23979:34)
at StaticSymbolResolver._createSymbolsOf (E:\ionic_project\wechat_restaurant
\node_modules\@angular\compiler\bundles\compiler.umd.js:23765:46)
at StaticSymbolResolver.getSymbolsOf (E:\ionic_project\wechat_restaurant\nod
e_modules\@angular\compiler\bundles\compiler.umd.js:23746:14)
at E:\ionic_project\wechat_restaurant\node_modules\@angular\compiler\bundles
\compiler.umd.js:22528:30
at Array.forEach (<anonymous>)
at extractProgramSymbols (E:\ionic_project\wechat_restaurant\node_modules\@a
ngular\compiler\bundles\compiler.umd.js:22527:79)
at AotCompiler.compileAll (E:\ionic_project\wechat_restaurant\node_modules\@
angular\compiler\bundles\compiler.umd.js:22225:47)
at CodeGenerator.codegen (E:\ionic_project\wechat_restaurant\node_modules\@a
ngular\compiler-cli\src\codegen.js:30:14)
at Function.NgTools_InternalApi_NG_2.codeGen (E:\ionic_project\wechat_restau
rant\node_modules\@angular\compiler-cli\src\ngtools_api.js:61:30)
at E:\ionic_project\wechat_restaurant\node_modules\@ionic\app-scripts\dist\a
ot\aot-compiler.js:182:73
[15:45:42] copy finished in 8.29 s

 

posted @ 2018-10-24 17:49  涵旭  阅读(1190)  评论(1编辑  收藏  举报