使用TypeScript使用--prod标志构建应用程序时出错

时间:2019-04-29 07:46:15

标签: typescript ionic-framework

我可以针对android和ios进行构建,但是,当我尝试使用--prod标志进行构建时,打字稿代码出现错误,并且没有给出修复该文件的文件。

打字稿错误:

Can't bind to 'ngOutletContext' since it isn't a known property of 'ng-template'. 1. If 'ngOutletContext' is 
an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component. 2. To allow any 
property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. (" <ng-template 
[ngTemplateOutlet]="monthviewDisplayEventTemplate" [ERROR ->][ngOutletContext]="{view: views[0], row: row, 
col: col}"> </ng-templa")

Error: The Angular AoT build failed. See the issues above 
Error: The Angular AoT build failed. See the issues above
    at /Users/luigimarino/EpApp/EP_FP/FoglioPresenze/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
    at step (/Users/luigimarino/EpApp/EP_FP/FoglioPresenze/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
    at Object.next (/Users/luigimarino/EpApp/EP_FP/FoglioPresenze/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
    at fulfilled (/Users/luigimarino/EpApp/EP_FP/FoglioPresenze/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)

0 个答案:

没有答案