My Netlify site under https://ng-pokedex-optimization.netlify.app/ has been failing to be deployed since I am trying to update it to Angular version 19.
Build log:
12:22:59 AM: Lazy chunk files | Names | Raw size
12:22:59 AM: chunk-7AIAW5CD.mjs | - | 124.80 kB |
12:22:59 AM: chunk-Q5D5T7KZ.mjs | pokedex-component | 15.67 kB |
12:22:59 AM: chunk-7D64UAJY.mjs | xhr2 | 12.07 kB |
12:22:59 AM: chunk-VFQFDLWD.mjs | - | 7.64 kB |
12:22:59 AM: chunk-IBT5OEO2.mjs | pokedex-component | 5.57 kB |
12:22:59 AM: chunk-I37OMDKT.mjs | - | 3.48 kB |
12:22:59 AM: chunk-BDB3ZCE7.mjs | details-component | 2.82 kB |
12:22:59 AM: chunk-3IEKGFDC.mjs | - | 2.35 kB |
12:22:59 AM: chunk-BL347H7C.mjs | form-component | 1.73 kB |
12:22:59 AM: chunk-RMVLNO3S.mjs | - | 1.61 kB |
12:22:59 AM: chunk-D76BZI73.mjs | details-component | 1.57 kB |
12:22:59 AM: chunk-AMM5VKSI.mjs | - | 1.52 kB |
12:22:59 AM: chunk-DTBRVH5P.mjs | - | 1.43 kB |
12:22:59 AM: chunk-CHY6ZLSC.mjs | intro-component | 1.25 kB |
12:22:59 AM: chunk-7A4XGKJX.mjs | browser | 859 bytes |
12:22:59 AM: ...and 2 more lazy chunks files. Use "--verbose" to show all the files.
12:22:59 AM: Prerendered 4 static routes.
12:22:59 AM: Application bundle generation complete. [13.826 seconds]
12:22:59 AM: ▲ [WARNING] bundle initial exceeded maximum budget. Budget 512.00 kB was not met by 101.14 kB with a total of 613.13 kB.
12:22:59 AM: ▲ [WARNING] css-inline-fonts:https://fonts.googleapis.com/css?family=Roboto:400 exceeded maximum budget. Budget 2.05 kB was not met by 1.34 kB with a total of 3.39 kB.
12:22:59 AM:
12:22:59 AM: Output location: /opt/build/repo/dist/angular-optimization-examples
12:22:59 AM:
12:22:59 AM: (build.command completed in 15.3s)
12:22:59 AM: Writing Angular SSR Edge Function ...
12:22:59 AM: Writing Angular SSR Edge Function ...
12:22:59 AM:
12:22:59 AM: Edge Functions bundling
12:22:59 AM: ────────────────────────────────────────────────────────────────
12:22:59 AM:
12:22:59 AM: Packaging Edge Functions from .netlify/edge-functions directory:
12:22:59 AM: - angular-ssr
12:23:07 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
12:23:05 AM: Error: Angular app engine manifest is not set. Please ensure you are using the '@angular/build:application' builder to build your server application.
12:23:05 AM: at sp (file:///opt/build/repo/dist/angular-optimization-examples/server/chunk-3WF2E4HF.mjs:47:1916)
12:23:05 AM: at t.<instance_members_initializer> (file:///opt/build/repo/dist/angular-optimization-examples/server/chunk-3WF2E4HF.mjs:75:5768)
12:23:05 AM: at new t (file:///opt/build/repo/dist/angular-optimization-examples/server/chunk-3WF2E4HF.mjs:75:5686)
12:23:05 AM: at file:///opt/build/repo/dist/angular-optimization-examples/server/server.mjs:2:265
12:23:06 AM:
12:23:06 AM: Bundling of edge function failed
12:23:06 AM: ────────────────────────────────────────────────────────────────
12:23:06 AM:
12:23:06 AM: Error message
12:23:06 AM: Could not load edge function at '/opt/build/repo/.netlify/edge-functions/angular-ssr/angular-ssr.mjs'. More on the Edge Functions API at https://ntl.fyi/edge-api.
12:23:06 AM:
12:23:06 AM: Error location
12:23:06 AM: While bundling edge function
12:23:06 AM:
12:23:06 AM: Resolved config
12:23:06 AM: build:
12:23:06 AM: command: pnpm run build
12:23:06 AM: commandOrigin: ui
12:23:06 AM: environment:
12:23:06 AM: - REVIEW_ID
12:23:06 AM: publish: /opt/build/repo/dist/angular-optimization-examples/browser
12:23:06 AM: publishOrigin: ui
12:23:06 AM: plugins:
12:23:06 AM: - inputs: {}
12:23:06 AM: origin: ui
12:23:06 AM: package: '@netlify/angular-runtime'
12:23:06 AM: - inputs: {}
12:23:06 AM: origin: ui
12:23:06 AM: package: '@netlify/plugin-lighthouse'
12:23:07 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:23:07 AM: Failing build: Failed to build site
12:23:07 AM: Finished processing build request in 1m4.864s
The related PR is available here: Update to angular v19 and utilise resource API by dimeloper · Pull Request #9 · dimeloper/angular-optimization · GitHub
Any kind of help would be really appreciated.