BailoutToCSR is in source for production builds. This means the html won't render when JS is off.
Unanswered
Little yellow ant posted this in #help-forum
Little yellow antOP
I've been trying to figure out how to get rid of this error so that I can get a page to render with the browser JS is off or for SEO. Does anyone know how to address this?
9 Replies
Little yellow antOP
I am using App Router and have been struggling with this for a bit.
are you using useSearchParams?
Little yellow antOP
Nah, whenever I use
next/dynamic this is happening. Dev builds are annoying but prod builds is rough@Little yellow ant Nah, whenever I use `next/dynamic` this is happening. Dev builds are annoying but prod builds is rough
could you show me a minimal reproduction repository? so i can have a closer look at the logic (particularly the
next/dynamic part) and see what's wrongLittle yellow antOP
I can't due to it being private stuff. I am simply using
next/dynamic, sometimes with ssr: false and sometimes with it true. Both seem to be ending up with that BailoutToCSR error stacktrace in the html@Little yellow ant I can't due to it being private stuff. I am simply using `next/dynamic`, sometimes with `ssr: false` and sometimes with it true. Both seem to be ending up with that BailoutToCSR error stacktrace in the html
yeah but with this much info i can't even guess what's going wrong.
you need not show any of the private stuff. only a minimal reproduction of the bug is good enough. try https://l.joulev.dev/mrr
you need not show any of the private stuff. only a minimal reproduction of the bug is good enough. try https://l.joulev.dev/mrr
Little yellow antOP
I'll try to get that done but it will probably need to wait a bit. Thank you for your help. I'm just at peek frustration with some of the app router stuff
Pages had its' issues but I didn't spend so much time battling the framework
yeah take your time. ping me when you get it for me