I can build without any problems for android and ios, but when i try to build with --prod flag gives me error on typescript code and don't gives me which file edit to fix it.

Typescript error:

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 Answers