I am having this issue. Pretty sure is something internal because I am following Netlify webapp steps. Weird thing is I have a older site with almost same content and deployed well.
Is a Nextjs App. I will really apprecciate if you can help me.
11:39:05 AM: 5. Edge Functions bundling
11:39:05 AM: ────────────────────────────────────────────────────────────────
11:39:05 AM:
11:39:05 AM: Packaging Edge Functions from .netlify/edge-functions directory:
11:39:05 AM: - rsc-data
11:39:06 AM: Could not load edge function at '/opt/build/repo/.netlify/edge-functions/rsc-data/rsc-data.ts'
11:39:06 AM: TypeError: Cannot read properties of null (reading 'endsWith')
11:39:06 AM: at file:///opt/build/repo/.netlify/edge-functions/edge-shared/rsc-data.ts:38:48
11:39:06 AM: at Array.filter (<anonymous>)
11:39:06 AM: at getRscDataRouter (file:///opt/build/repo/.netlify/edge-functions/edge-shared/rsc-data.ts:38:8)
11:39:06 AM: at file:///opt/build/repo/.netlify/edge-functions/rsc-data/rsc-data.ts:4:17
11:39:06 AM:
11:39:06 AM: Internal error during "Edge Functions bundling"
11:39:06 AM: ────────────────────────────────────────────────────────────────
11:39:06 AM:
11:39:06 AM: Error message
11:39:06 AM: TypeError: Expected a string
11:39:06 AM:
11:39:06 AM: Error location
11:39:06 AM: During Edge Functions bundling
11:39:06 AM: at module.exports (/opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/node_modules/glob-to-regexp/index.js:3:11)
11:39:06 AM: at pathToRegularExpression (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/dist/node/manifest.js:73:31)
11:39:06 AM: at getRegularExpression (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/dist/node/manifest.js:94:12)
11:39:06 AM: at file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/dist/node/manifest.js:37:25
11:39:06 AM: at Array.forEach (<anonymous>)
11:39:06 AM: at generateManifest (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/dist/node/manifest.js:32:18)
11:39:06 AM: at writeManifest (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/dist/node/manifest.js:115:22)
11:39:06 AM: at bundle (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/dist/node/bundler.js:73:28)
11:39:06 AM: at runMicrotasks (<anonymous>)
11:39:06 AM: at processTicksAndRejections (node:internal/process/task_queues:96:5)