Skip to content
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

useSearchParams() should be wrapped in a suspense boundary at page "/login" #1

Open
chrisschaetzlein opened this issue Feb 16, 2024 · 0 comments

Comments

@chrisschaetzlein
Copy link

When running next build it gives me the following error messages:

   Generating static pages (1/10)  [=   ] 

 ⨯ useSearchParams() should be wrapped in a suspense boundary at page "/login". Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout

Error occurred prerendering page "/login". Read more: https://nextjs.org/docs/messages/prerender-error
 ✓ Generating static pages (10/10) 

> Export encountered errors on following paths:
        /(guest)/login/page: /login

I'm a total newbie with NextJS and React and can't find out what to change in the login/page.tsx to make it work. The explanation of the error at the given URL doesn't make much sense to me either. I appreciate any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant