All of a sudden new web builds fail with this error.
Build Stack
Linux - 2024.10
±----------------------------------------------+
| fastlane summary |
±-----±-------------------------±------------+
| Step | Action | Time (in s) |
±-----±-------------------------±------------+
| 1 | add_extra_platforms | 0 |
| 2 | default_platform | 0 |
| 3 | sentry_init | 0 |
| 4 | begin_building | 0 |
| 5 | build_summary | 1 |
| 6 | set_ionic_cli | 1 |
| 7 | detect_package_manager | 0 |
| 8 | add_git_credentials | 0 |
| 9 | get_appflow_config | 0 |
| 10 | dependency_install | 80 |
| 11 | create_capacitor_config | 0 |
| 12 | get_web_dir | 0 |
| | build_pro_app | 0 |
| 14 | upload_logs | 4 |
| 15 | sentry_capture_exception | 0 |
±-----±-------------------------±------------+
[15:44:07]: fastlane finished with errors
/usr/local/bundle/bin/fastlane: [!] Exit status of command ‘npm run build’ was 127 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
An unhandled exception occurred: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try npm i
again after removing both package-lock.json and node_modules directory.
See “/tmp/ng-pah78y/angular-errors.log” for further details.
This is definitely on appflow’s side since i only changed some code in a couple of .js files, but if there’s a way to fix it on my end, how would i go about it?
Edit: added build stack. Also, it seems to be related to the latest version of angular with that particulat build stack. Tried the 2023.10 and it fails, the same way, but with a lot of warnings. about mismatch versions of node and angular.
Angular CLI: 18.2.12
Node: 22.11.0
Package Manager: npm 10.9.0
OS: darwin x64
Angular: 18.2.12
… animations, cli, common, compiler, compiler-cli, core, forms
… language-service, platform-browser, platform-browser-dynamic
… router
Package Version
@angular-devkit/architect 0.1802.12
@angular-devkit/build-angular 18.2.12
@angular-devkit/core 18.2.12
@angular-devkit/schematics 18.2.12
@ngtools/webpack 18.2.12
@schematics/angular 18.2.12 (cli-only)
rxjs 7.8.1
typescript 5.5.4
zone.js 0.14.10