gpt4 book ai didi

ios - 运行 ionic ios build --prod --release 时出错

转载 作者:可可西里 更新时间:2023-11-01 17:03:28 25 4
gpt4 key购买 nike

安装 Themeable 浏览器插件后,我在运行时遇到此错误:

ionic cordova build ios --prod --release 

我能够毫无错误地构建 ios --prod --release。谢谢:D

    Mac-Pro-de-chaker-2:cleantoufoulakids chakerkalai$ ionic cordova build ios --prod --realise
Running app-scripts build: --prod --platform ios --target cordova
[18:22:05] build prod started ...
[18:22:07] clean started ...
[18:22:07] clean finished in 2 ms
[18:22:07] copy started ...
[18:22:07] ngc started ...
Error: Metadata version mismatch for module /Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@ionic-native/core/decorators.d.ts, found version 4, expected 3
at StaticSymbolResolver.getModuleMetadata (/Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@angular/compiler/bundles/compiler.umd.js:24474:34)
at StaticSymbolResolver._createSymbolsOf (/Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@angular/compiler/bundles/compiler.umd.js:24260:46)
at StaticSymbolResolver.getSymbolsOf (/Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@angular/compiler/bundles/compiler.umd.js:24241:14)
at /Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@angular/compiler/bundles/compiler.umd.js:23023:30
at Array.forEach (native)
at extractProgramSymbols (/Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@angular/compiler/bundles/compiler.umd.js:23022:79)
at AotCompiler.compileAll (/Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@angular/compiler/bundles/compiler.umd.js:22720:47)
at CodeGenerator.codegen (/Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@angular/compiler-cli/src/codegen.js:30:14)
at Function.NgTools_InternalApi_NG_2.codeGen (/Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@angular/compiler-cli/src/ngtools_api.js:61:30)
at Object.doCodegen (/Users/chakerkalai/Desktop/cleantoufoulakids/node_modules/@ionic/app-scripts/dist/aot/codegen.js:6:51)
[18:22:47] copy finished in 40.10 s

最佳答案

这都是关于库版本不匹配的问题。

确保你有 "typescript": "2.4.0"并且不是更新的。

对于所有以 "@ionic-native/..." 开头的包,它们的版本应该是 4.3.0 没有 ^ 在开头。

并且请不要升级到 rxjs 5.5,使用 "rxjs": "5.4.3" 因为他们更改了运算符导出/导入。

注意:如果您仍然遇到 found version 4, expected 3 的问题,请从导致问题的库版本中删除帽子 ^

祝你好运!

关于ios - 运行 ionic ios build --prod --release 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47228186/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com