Astro standalone node http server crashes if it includes React component that throws error #10062
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
pkg: node
Related to Node adapter (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When including a React component within a Astro component, and the React component has an error, the node server exits.
Run these steps in StackBlitz console:
npm install
npm run build
node ./dist/server/entry.mjs
What's the expected result?
The node http server should respond with
500 Internal Server Error
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-1fpqka?file=src%2Fcomponents%2FReactFail.tsx
Participation
The text was updated successfully, but these errors were encountered: