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

Posted hanxu-wang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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_projectwechat_restauran
t ode_modules@angularcompilerundlescompiler.umd.js:23979:34)
at StaticSymbolResolver._createSymbolsOf (E:ionic_projectwechat_restaurant
ode_modules@angularcompilerundlescompiler.umd.js:23765:46)
at StaticSymbolResolver.getSymbolsOf (E:ionic_projectwechat_restaurant od
e_modules@angularcompilerundlescompiler.umd.js:23746:14)
at E:ionic_projectwechat_restaurant ode_modules@angularcompilerundles
compiler.umd.js:22528:30
at Array.forEach (<anonymous>)
at extractProgramSymbols (E:ionic_projectwechat_restaurant ode_modules@a
ngularcompilerundlescompiler.umd.js:22527:79)
at AotCompiler.compileAll (E:ionic_projectwechat_restaurant ode_modules@
angularcompilerundlescompiler.umd.js:22225:47)
at CodeGenerator.codegen (E:ionic_projectwechat_restaurant ode_modules@a
ngularcompiler-clisrccodegen.js:30:14)
at Function.NgTools_InternalApi_NG_2.codeGen (E:ionic_projectwechat_restau
rant ode_modules@angularcompiler-clisrc gtools_api.js:61:30)
at E:ionic_projectwechat_restaurant ode_modules@ionicapp-scriptsdista
otaot-compiler.js:182:73
[15:45:42] copy finished in 8.29 s

 
























以上是关于ionic cordova build 成功,ionic cordova build --prod 报错的主要内容,如果未能解决你的问题,请参考以下文章

安装cordova push插件后,Ionic build ios失败

运行 ionic cordova build ios 时找不到包含的文件

ionic cordova build ios 使用 xcode swift 3 框架安装自定义插件失败

存档成功,但导出失败:cordova build ios --release

Ionic Cordova 不构建 android

如何使用 Ionic / Cordova 在 iOS 上启用多任务处理?