Hello I am getting these error message while trying to build android apps:
> ionic-app-scripts build --prod --target cordova --platform android
[11:27:46] ionic-app-scripts 3.2.0
[11:27:46] build prod started ...
[11:27:46] clean started ...
[11:27:46] clean finished in 66 ms
[11:27:46] copy started ...
[11:27:46] deeplinks started ...
[11:27:46] deeplinks finished in 335 ms
[11:27:46] ngc started ...
[11:27:54] typescript error
Type AccountaddemailPage in C:/IDS - Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.ts is part
of the declarations of 2 modules: AppModule in C:/IDS - Akhir/solusipay2/src/app/app.module.ts and
AccountaddemailPageModule in C:/IDS - Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.module.ts!
Please consider moving AccountaddemailPage in C:/IDS -
Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.ts to a higher module that imports AppModule in
C:/IDS - Akhir/solusipay2/src/app/app.module.ts and AccountaddemailPageModule in C:/IDS -
Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.module.ts. You can also create a new NgModule
that exports and includes AccountaddemailPage in C:/IDS -
Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.ts then import that NgModule in AppModule in
C:/IDS - Akhir/solusipay2/src/app/app.module.ts and AccountaddemailPageModule in C:/IDS -
Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.module.ts.
[11:27:54] ionic-app-script task: "build"
[11:27:54] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at C:\IDS - Akhir\solusipay2\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:237:55
at step (C:\IDS - Akhir\solusipay2\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:32:23)
at Object.next (C:\IDS - Akhir\solusipay2\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:13:53)
at fulfilled (C:\IDS - Akhir\solusipay2\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:4:58)
at <anonymous>
[INFO] Looks like @ionic/app-scripts isn't installed in this project.
This package is required for this command to work properly.
? Install @ionic/app-scripts? Yes
> npm i -D -E @ionic/app-scripts
npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
npm WARN @ionic-native/android-permissions@4.13.0 requires a peer of @ionic-native/core@^4.11.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/android-permissions@4.13.0 requires a peer of rxjs@^5.5.11 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/diagnostic@4.14.0 requires a peer of @ionic-native/core@^4.11.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/diagnostic@4.14.0 requires a peer of rxjs@^5.5.11 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/network@4.12.2 requires a peer of @ionic-native/core@^4.11.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/network@4.12.2 requires a peer of rxjs@^5.5.11 but none is installed. You must install peer dependencies yourself.
+ @ionic/app-scripts@3.2.0
updated 1 package and audited 5417 packages in 50.957s
found 7 vulnerabilities (2 low, 5 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
> ionic-app-scripts build --prod --target cordova --platform android
[11:29:00] ionic-app-scripts 3.2.0
[11:29:00] build prod started ...
[11:29:00] clean started ...
[11:29:00] clean finished in 2 ms
[11:29:00] copy started ...
[11:29:01] deeplinks started ...
[11:29:01] deeplinks finished in 312 ms
[11:29:01] ngc started ...
[11:29:07] typescript error
Type AccountaddemailPage in C:/IDS - Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.ts is part
of the declarations of 2 modules: AppModule in C:/IDS - Akhir/solusipay2/src/app/app.module.ts and
AccountaddemailPageModule in C:/IDS - Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.module.ts!
Please consider moving AccountaddemailPage in C:/IDS -
Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.ts to a higher module that imports AppModule in
C:/IDS - Akhir/solusipay2/src/app/app.module.ts and AccountaddemailPageModule in C:/IDS -
Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.module.ts. You can also create a new NgModule
that exports and includes AccountaddemailPage in C:/IDS -
Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.ts then import that NgModule in AppModule in
C:/IDS - Akhir/solusipay2/src/app/app.module.ts and AccountaddemailPageModule in C:/IDS -
Akhir/solusipay2/src/pages/accountaddemail/accountaddemail.module.ts.
[11:29:07] ionic-app-script task: "build"
[11:29:07] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at C:\IDS - Akhir\solusipay2\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:237:55
at step (C:\IDS - Akhir\solusipay2\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:32:23)
at Object.next (C:\IDS - Akhir\solusipay2\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:13:53)
at fulfilled (C:\IDS - Akhir\solusipay2\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:4:58)
at <anonymous>
[ERROR] ionic-app-scripts command not found.