Next.js Discord

Discord Forum

build throws "useSearchParams should be wrapped in a suspense boundary", but i'm not using it

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
next build throws "useSearchParams should be wrapped in a suspense boundary" error, but i'm not using the useSearchParams hook anywhere in my app. I realized that the error occurs on all pages within my route group folder called "public", but nothing happens for pages outside of this route group.

Using app router, Next 14.1.0

3 Replies