首页 > 解决方案 > 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.

谢谢你的时间。

谢谢, 图沙尔

标签: androidionic-frameworkbuildproduction

解决方案


推荐阅读