Here I have a problem with ionic build, that takes forever to finish the build and gives me no feedback on why. It terminates the process correctly, but takes too much time.
I have a project with this info
Ionic CLI : 7.1.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 7.0.0 @angular-devkit/build-angular : 15.2.4 @angular-devkit/schematics : 15.2.4 @angular/cli : 15.2.4 @ionic/angular-toolkit : 9.0.0 Capacitor: Capacitor CLI : 5.2.2 @capacitor/android : 5.2.2 @capacitor/core : 5.2.2 @capacitor/ios : 5.2.2 Utility: cordova-res : not installed globally native-run (update available: 2.0.0) : 1.7.2 System: NodeJS : v20.2.0 (/usr/local/bin/node) npm : 9.8.1 OS : macOS Unknown`
It’s a fairly big project, but the
ionic build --prod takes more than 4 minutes to finish. I get this line of code
Build at: DATE - Hash: XXX - Time: XXXXms and after that takes forever with no other news.
So I tried with the
--verbose flag in case it could give me some explanation and only one line is shown:
ionic:lib:hooks Looking for ionic:build:after npm script. +4m. But I don’t know where to even start with this. Any ideas?