@rodneyjoyce wrote:
Hi, I upgraded to version 3.1.2 of Ionic App Scripts and version 3.9.2 of Ionic. When I do an “Ionic serve” it works fine. When I try to build in Prod mode it fails with “Failed to transpile TypeScript”:
I thought it might be something to do with the new "ngo" compiler option, however disablign it with the command below does not help.
This release adds support for ngo, the Angular team’s build optimizer tool. ngo is enabled by default on --prod builds. In the event that ngo is not working for your app or something goes wrong, it can be disabled by running the following build command: ionic cordova build ios --aot --minifyjs --minifycss --optimizejs13:38:26] typescript: C:/git/QueMesaMobile/src/core/utilities/push-notification.service.ts, line: 51 Type '{ android: { senderID: string; }; ios: { alert: "true"; badge: "true"; sound: "true"; }; windows:...' is not assignable to type 'PushOptions'. Types of property 'android' are incompatible. Type '{ senderID: string; }' is not assignable to type 'AndroidPushOptions'. Object literal may only specify known properties, and 'senderID' does not exist in type 'AndroidPushOptions'. L50: android: { L51: senderID: this.environmentService.environment.androidPushNotificationSenderId L52: }, Error: Failed to transpile TypeScript at errorCheckProgram (C:\git\QueMesaMobile\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:119:39) at Object.<anonymous> (C:\git\QueMesaMobile\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:89:21) at step (C:\git\QueMesaMobile\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:32:23) at Object.next (C:\git\QueMesaMobile\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:13:53) at fulfilled (C:\git\QueMesaMobile\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:4:58) [13:38:26] copy finished in 17.27 s
cli packages: (C:\git\QueMesaMobile\node_modules)
@ionic/cli-utils : 1.18.0 ionic (Ionic CLI) : 3.18.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.2 Cordova Platforms : android 6.2.3 browser 4.1.0 ios 4.3.1 Ionic Framework : ionic-angular 3.9.2
System:
Node : v6.10.0 npm : 3.10.10 OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : legacy
Posts: 2
Participants: 2