当我尝试创建IOS构建时收到如下错误。
错误:模块/Users/newuser/WebstormProjects/myproject/node_modules/@ionic-native/network/index.d.ts的元数据版本不匹配,找到版本4,预期3 在StaticSymbolResolver.getModuleMetadata(/Users/newuser/myproject/node_modules/@angular/compiler/bundles/compiler.umd.js:24474:34) 在StaticSymbolResolver._createSymbolsOf(/Users/newuser/myproject/node_modules/@angular/compiler/bundles/compiler.umd.js:24260:46) 在StaticSymbolResolver.getSymbolsOf(/Users/newuser/myproject/node_modules/@angular/compiler/bundles/compiler.umd.js:24241:14) at /Users/newuser/myproject/node_modules/@angular/compiler/bundles/compiler.umd.js:23023:30 at Array.forEach(native) 在extractProgramSymbols(/Users/newuser/myproject/node_modules/@angular/compiler/bundles/compiler.umd.js:23022:79) 在AotCompiler.compileAll(/Users/newuser/myproject/node_modules/@angular/compiler/bundles/compiler.umd.js:22720:47) 在CodeGenerator.codegen(/Users/newuser/myproject/node_modules/@angular/compiler-cli/src/codegen.js:30:14) 在Function.NgTools_InternalApi_NG_2.codeGen(/Users/newuser/myproject/node_modules/@angular/compiler-cli/src/ngtools_api.js:61:30) at Object.doCodegen(/Users/newuser/myproject/node_modules/@ionic/app-scripts/dist/aot/codegen.js:6:51)
cli包:
@ionic/cli-utils : 1.16.0
ionic (Ionic CLI) : 3.16.0
全球套餐:
cordova (Cordova CLI) : 7.0.1
本地包裹:
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.3.0 browser 4.1.0 ios 4.4.0
Ionic Framework : ionic-angular 3.6.0
系统:
Node : v6.11.1
npm : 3.10.10
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
环境变量:
ANDROID_HOME : not set
其他:
backend : legacy