android - Ionic android 应用程序生产构建中的问题 - TypeError: compiler_1.isFormattedError is not a function at syntaxErrorToDiagnostics
问题描述
请帮我解决这个问题。
我能够成功创建发布版本。
但是在生产版本中我遇到了错误
[09:37:08] TypeError: compiler_1.isFormattedError is not a function TypeError: compiler_1.isFormattedError is not a function at syntaxErrorToDiagnostics (D:\Ionicserver\icdl-updated-node-modules\node_modules@angular\compiler-cli\src \transformers\program.js:943:29) 在 AngularCompilerProgram._addStructuralDiagnostics (D:\Ionicserver\icdl-updated-node-modules\node_modules@angular\compiler-cli\src\transformers\program.js:600:37) 在AngularCompilerProgram._createProgramOnError (D:\Ionicserver\icdl-updated-node-modules\node_modules@angular\compiler-cli\src\transformers\program.js:592:22) 在 Promise.resolve.then.catch.e (D: \Ionicserver\icdl-updated-node-modules\node_modules@angular\compiler-cli\src\transformers\program.js:189:34) [错误] 运行子进程 ionic-app-scripts 时出错。
ionic-app-scripts.cmd build --prod --target cordova --platform android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
谢谢你的时间。
谢谢, 图沙尔
解决方案
推荐阅读
- python - 使用 Python 3.7,如何删除 .txt 文件中具有相同开头的行?
- excel - 有没有办法清除表格(listObject)内容并将其调整为一列?
- python - 添加手动拆分功能以验证 xgboost 功能
- linux - 在 Linux RHEL 中实现禁止密码
- model-view-controller - 我应该如何在 MVC 中制作类图?
- android - 为什么我使用数据有效负载 JSON FCM。在颤动中获得通知不起作用?
- api - 仅通过 IIS 超时调用 Msgraph
- apache-kafka - Kafka在提交偏移之前设置消费者偏移
- node.js - 没有使用 mongoose 6 定义的 DEFAULT 的 AuthProvider
- android - 如何测量应用程序或固件访问磁盘的频率?