martinkr/next-export-i18n

Generating static pages error when not setting missingSuspenseWithCSRBailout to false

cidhuang opened this issue · 1 comments

 Generating static pages (0/5)  [=   ] ⨯ useSearchParams() should be wrapped in a suspense boundary at page "/".

This error occurs if I don't set

experimental: {
    missingSuspenseWithCSRBailout: false,
},

in next.config.mjs

The repo is https://github.com/cidhuang/system-dynamics-tool , and branch is boilerplate.

Thank you

I moved next-export-i18n associated content to another component and added Suspense as below and solved it.
https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout

But I doubt it is the solution.