Next.js Discord

Discord Forum

Issue with missing-suspense-with-csr-bailout error while upgrading to Next 15

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
I'm upgrading my project to Next 15, ran the codemod and fix a few errors.
Right now I'm stuck with this missing-suspense-with-csr-bailout error where you don't wrap a component that use useSearchParams in a Suspense tag.
Previously we used the missingSuspenseWithCSRBailout: false, flag to go pass it in the build but looks like it's no longer working for v15
Anyways I followed the error messages from the vercel dashboard and add a Suspense wrapper on the first client component in the tree but for some reason it's still have the same error on that route and sometimes even errors on other routes that doesn't have that error in previous builds
Am I even on the right track? Do I need to find every useSearchParams implementation on every component and custom hooks? Are we living in a simulation? Help please 😭

0 Replies