运行ionic cordova build android --prod时,我遇到错误表达形式,这是我的控制台输出
Running app-scripts build: --prod --platform android --target cordova
[17:56:16] build prod started ...
[17:56:16] clean started ...
[17:56:16] clean finished in 5 ms
[17:56:16] copy started ...
[17:56:16] deeplinks finished in 156 ms
[17:56:16] ngc started ...
[17:56:23] typescript error
src/app/app.module.ts(122,18): Error during template compile of 'AppModule' Expression form not supported.
Error: The Angular AoT build failed. See the issues above
at /home/prabhu/workstation/sportsMedico/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/home/prabhu/workstation/sportsMedico/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
Error: The Angular AoT build failed. See the issues above
at /home/prabhu/workstation/demo/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/home/prabhu/workstation/demo/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/home/prabhu/workstation/demo/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/home/prabhu/workstation/demo/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
[17:56:23] copy finished in 6.68 s