-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Routes that only export action
fail with Prerender: Received a 400 status code from entry.server.tsx while prerendering the /path
#12904
Comments
action
fail with Prerender: Received a 400 status code from
entry.server.tsx while prerendering the /path
action
fail with Prerender: Received a 400 status code from entry.server.tsx while prerendering the /path
This is fixed by #13004 and will be available in the next release |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
I'm using React Router as a...
framework
Reproduction
https://stackblitz.com/edit/stackblitz-webcontainer-api-starter-54oaxcde?file=app%2Froutes%2Fapi%2Fpokemon.ts
Run
pnpm build
, react-router fails with[react-router] Prerender: Received a 400 status code from
entry.server.tsxwhile prerendering the
/api/pokemon/path.
System Info
Used Package Manager
npm
Expected Behavior
Do not prerender resource routes
Actual Behavior
react-router tries to prerender a resource route without a loader
The text was updated successfully, but these errors were encountered: