Can’t understand what’s wrong I am doing.
netlify.toml
[build]
publish = "dist/ng-ssr-netlify/browser"
command = "ng build --configuration development"
functions = "./functions"
7:09:19 PM: Netlify Build
7:09:19 PM: ────────────────────────────────────────────────────────────────
7:09:19 PM:
7:09:19 PM: ❯ Version
7:09:19 PM: @netlify/build 29.51.5
7:09:19 PM:
7:09:19 PM: ❯ Flags
7:09:19 PM: baseRelDir: true
7:09:19 PM: buildId: 66b37859b2f2690092787b20
7:09:19 PM: deployId: 66b37859b2f2690092787b22
7:09:19 PM:
7:09:19 PM: ❯ Current directory
7:09:19 PM: /opt/build/repo
7:09:19 PM:
7:09:19 PM: ❯ Config file
7:09:19 PM: /opt/build/repo/netlify.toml
7:09:19 PM:
7:09:19 PM: ❯ Context
7:09:19 PM: production
7:09:19 PM:
7:09:19 PM: ❯ Installing plugins
7:09:19 PM: - @netlify/angular-runtime@2.1.0
7:09:20 PM:
7:09:20 PM: ❯ Loading plugins
7:09:20 PM: - @netlify/angular-runtime@2.1.0 from Netlify app
7:09:21 PM:
7:09:21 PM: build.command from netlify.toml
7:09:21 PM: ────────────────────────────────────────────────────────────────
7:09:21 PM:
7:09:21 PM: $ ng build --configuration development
7:09:22 PM: - Building...
7:09:43 PM: Browser bundles
7:09:43 PM: Initial chunk files | Names | Raw size
7:09:43 PM: main.js | main | 3.97 MB |
7:09:43 PM: styles.css | styles | 1.30 MB |
7:09:43 PM: chunk-EEABJSPC.js | - | 156.88 kB |
7:09:43 PM: polyfills.js | polyfills | 153.90 kB |
7:09:43 PM: chunk-EFFYQXWM.js | - | 38.74 kB |
7:09:43 PM: chunk-CJC764AO.js | - | 18.14 kB |
7:09:43 PM: chunk-Q2FLM5N2.js | - | 6.40 kB |
7:09:43 PM: chunk-72JII47O.js | - | 6.35 kB |
7:09:43 PM: chunk-WME3VOFU.js | - | 5.36 kB |
7:09:43 PM: chunk-VJ3BX3TR.js | - | 3.82 kB |
7:09:43 PM: | Initial total | 5.66 MB
7:09:43 PM: Lazy chunk files | Names | Raw size
7:09:43 PM: chunk-V33TK7LY.js | metamask-sdk | 2.51 MB |
7:09:43 PM: chunk-AWBQBRSC.js | index-es | 908.11 kB |
7:09:43 PM: chunk-3RG46CFQ.js | index | 676.35 kB |
7:09:43 PM: chunk-FZ6A7CXX.js | - | 286.15 kB |
7:09:43 PM: chunk-JGZJ7JGL.js | index | 219.68 kB |
7:09:43 PM: chunk-CLGHGUXZ.js | index | 198.07 kB |
7:09:43 PM: chunk-TGXM3VBP.js | secp256k1 | 65.40 kB |
7:09:43 PM: chunk-FIRV2FY6.js | index | 58.29 kB |
7:09:43 PM: chunk-GNABJ3UR.js | - | 21.68 kB |
7:09:43 PM: chunk-FNXKZGLS.js | - | 13.09 kB |
7:09:43 PM: chunk-O2XKSE5O.js | index | 8.64 kB |
7:09:43 PM: chunk-NGMGD4HK.js | index | 762 bytes |
7:09:43 PM: chunk-RYFT5BAN.js | native | 600 bytes |
7:09:43 PM: chunk-67HXYGOR.js | ccip | 322 bytes |
7:09:43 PM: Server bundles
7:09:43 PM: Initial chunk files | Names | Raw size
7:09:43 PM: chunk-S2456KOC.mjs | - | 2.66 MB |
7:09:43 PM: chunk-HOG7AE6Q.mjs | - | 1.85 MB |
7:09:43 PM: server.mjs | server | 1.69 MB |
7:09:43 PM: polyfills.server.mjs | polyfills.server | 572.95 kB |
7:09:43 PM: chunk-RDQOPTM6.mjs | - | 156.92 kB |
7:09:43 PM: chunk-FMO7VOCC.mjs | - | 38.77 kB |
7:09:43 PM: chunk-DHNJNHQG.mjs | - | 18.18 kB |
7:09:43 PM: chunk-4GNL7BDR.mjs | - | 6.44 kB |
7:09:43 PM: chunk-564JRJGX.mjs | - | 6.38 kB |
7:09:43 PM: chunk-HKAIOYIV.mjs | - | 5.39 kB |
7:09:43 PM: chunk-6NC4FJDQ.mjs | - | 3.88 kB |
7:09:43 PM: chunk-KCEXWYF2.mjs | - | 3.47 kB |
7:09:43 PM: chunk-BXDZ7NMP.mjs | - | 2.52 kB |
7:09:43 PM: main.server.mjs | main.server | 421 bytes |
7:09:43 PM: render-utils.server.mjs | render-utils.server | 367 bytes |
7:09:43 PM: Lazy chunk files | Names | Raw size
7:09:43 PM: chunk-J4BTY6JL.mjs | metamask-sdk | 1.62 MB |
7:09:43 PM: chunk-PFLUY724.mjs | index-es | 1.41 MB |
7:09:43 PM: chunk-RHTN6X66.mjs | index | 626.09 kB |
7:09:43 PM: chunk-DGDEX4PM.mjs | - | 552.17 kB |
7:09:43 PM: chunk-2PM6ZL2E.mjs | index | 306.39 kB |
7:09:43 PM: chunk-CU5YHM6J.mjs | index | 197.93 kB |
7:09:43 PM: chunk-2Z3ALZ3B.mjs | - | 154.70 kB |
7:09:43 PM: chunk-RFL5PTPN.mjs | - | 109.76 kB |
7:09:43 PM: chunk-ACIBDC5X.mjs | secp256k1 | 65.43 kB |
7:09:43 PM: chunk-TPPRS65A.mjs | index | 58.33 kB |
7:09:43 PM: chunk-L4CO6C3K.mjs | xhr2 | 40.04 kB |
7:09:43 PM: chunk-EKKUORJU.mjs | - | 21.72 kB |
7:09:43 PM: chunk-ARLREYO5.mjs | index | 8.63 kB |
7:09:43 PM: chunk-5X56K5D6.mjs | index | 918 bytes |
7:09:43 PM: chunk-DG7IXMEI.mjs | index | 799 bytes |
7:09:43 PM: ...and 1 more lazy chunks files. Use "--verbose" to show all the files.
7:09:43 PM: Output location: /opt/build/repo/dist/ng-ssr-netlify
7:09:43 PM: Application bundle generation complete. [21.682 seconds]
7:09:44 PM:
7:09:44 PM: (build.command completed in 22.3s)
7:09:44 PM: Writing Angular SSR Edge Function ...
7:09:44 PM:
7:09:44 PM: Functions bundling
7:09:44 PM: ────────────────────────────────────────────────────────────────
7:09:44 PM:
7:09:44 PM: The Netlify Functions setting targets a non-existing directory: functions
7:09:44 PM:
7:09:44 PM: (Functions bundling completed in 2ms)
7:09:44 PM:
7:09:44 PM: Edge Functions bundling
7:09:44 PM: ────────────────────────────────────────────────────────────────
7:09:44 PM:
7:09:44 PM: Packaging Edge Functions from .netlify/edge-functions directory:
7:09:44 PM: - angular-ssr
7:09:53 PM: TypeError: Cannot set properties of undefined (setting 'target')
7:09:53 PM: at setTarget (ext:deno_web/02_event.js:98:29)
7:09:53 PM: at dispatchEvent (ext:deno_web/02_event.js:1031:7)
7:09:53 PM: at requestProviders (file:///opt/build/repo/dist/ng-ssr-netlify/server/chunk-S2456KOC.mjs:63931:10)
7:09:53 PM: at request (file:///opt/build/repo/dist/ng-ssr-netlify/server/chunk-S2456KOC.mjs:63939:25)
7:09:53 PM: at createStore (file:///opt/build/repo/dist/ng-ssr-netlify/server/chunk-S2456KOC.mjs:63948:17)
7:09:53 PM: at createConfig (file:///opt/build/repo/dist/ng-ssr-netlify/server/chunk-S2456KOC.mjs:64505:82)
7:09:53 PM: at file:///opt/build/repo/dist/ng-ssr-netlify/server/chunk-S2456KOC.mjs:65737:14
7:09:54 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
7:09:54 PM:
7:09:54 PM: Bundling of edge function failed
7:09:54 PM: ────────────────────────────────────────────────────────────────
7:09:54 PM:
7:09:54 PM: Error message
7:09:54 PM: 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.
7:09:54 PM:
7:09:54 PM: Error location
7:09:54 PM: While bundling edge function
7:09:54 PM:
7:09:54 PM: Resolved config
7:09:54 PM: build:
7:09:54 PM: command: ng build --configuration development
7:09:54 PM: commandOrigin: config
7:09:54 PM: publish: /opt/build/repo/dist/ng-ssr-netlify/browser
7:09:54 PM: publishOrigin: config
7:09:54 PM: functionsDirectory: /opt/build/repo/functions
7:09:54 PM: plugins:
7:09:54 PM: - inputs: {}
7:09:54 PM: origin: ui
7:09:54 PM: package: '@netlify/angular-runtime'
7:09:54 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
7:09:54 PM: Failing build: Failed to build site
7:09:54 PM: Finished processing build request in 1m29.206s