SolidJSS
SolidJSโ€ข3y agoโ€ข
13 replies
daz.dev

Deploying vanilla Start Beta2 to Netlify fails, edge function crashes

Trying to get a base Solid Start build deployed to Netlify, by actioning:
- pnpm create solid@beta
-
pnpm install

- Add netlify.toml, with build.publish of /dist
- Ensure vite.config sets start.server.preset to netlify_edge

Tried deploying with GitHub push to branch and manually with Netlify CLI, to same result.

Build and deploy succeeds on Netlify dashboard, however the browser shows error: This edge function has crashed

Logs:

Dec 29, 01:52:14 PM: 01HJTXHK error  [nitro server handler] [nitro] [request error] [unhandled] Cannot read properties of undefined (reading 'assets')
  at Object.get assets (file:.//root/.netlify/edge-functions/server/server.js:1:221414)  
  [...snip]
  at file:.//root/.netlify/edge-functions/server/server.js:1:224695Dec 29, 01:52:14 PM: error  TypeError: Cannot read properties of undefined (reading 'routes')
    at file:///root/.netlify/edge-functions/server/server.js:1:220727
    at eventLoopTick (ext:core/01_core.js:178:11)Dec 29, 01:52:20 PM: 01HJTXHS error  [nitro server handler] [nitro] [request error] [unhandled] Cannot read properties of undefined (reading 'assets')
  [...snip]
  at file:.//root/.netlify/edge-functions/server/server.js:1:224695Dec 29, 01:52:20 PM: error  TypeError: Cannot read properties of undefined (reading 'routes')
    at file:///root/.netlify/edge-functions/server/server.js:1:220727
    at eventLoopTick (ext:core/01_core.js:178:11)Dec 29, 01:52:21 PM: 01HJTXHT error  [nitro server handler] [nitro] [request error] [unhandled] Cannot read properties of undefined (reading 'assets')
  at Object.get assets (file:.//root/.netlify/edge-functions/server/server.js:1:221414)  
  [...snip]

Test repo here: https://github.com/darrenbarklie/solid-start-beta2

Thanks in advance!
GitHub
Contribute to darrenbarklie/solid-start-beta2 development by creating an account on GitHub.
GitHub - darrenbarklie/solid-start-beta2
Was this page helpful?