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
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
Using app router, Next 14.1.0
3 Replies
@!=tgt wrap it in `<Suspense>` then
Asian black bearOP
There is no useSearchParams to wrap
@Asian black bear There is no useSearchParams to wrap
Whats your code that's giving this error?