-
SummaryHi everyone, I've been trying to debug the issue with no success. I'm building a website https://reciperium.com using nextjs 14. And when I navigate back, it throws an "Application error: a client-side exception has occurred". I've looked online and apparently it happens when you miss-use Steps to reproduce
Any ideas on what could be happening? Very rarely I'm able to reproduce it locally, and I get: On the console:
On the main screen:
And again, I went through all the "use client" pages, and none of them have Additional informationBinaries:
Node: 20.10.0
npm: 10.2.3
Yarn: 1.22.4
pnpm: N/A
Relevant Packages:
next: 14.1.0
eslint-config-next: 14.0.4
react: 18.2.0
react-dom: 18.2.0
typescript: 5.1.6
Next.js Config:
output: standalone ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
I fixed it thanks to this issue, I was forced to gather data, and I identified why I was not able to reproduce it locally: because I was logged in. <Suspense>
<MainNav>
</Suspense> |
Beta Was this translation helpful? Give feedback.
-
hey, i am having the same issue, but not able to debug this, when i go back the props which are supposed to come from the server side props are undefined. but when refresh the page , it works fine |
Beta Was this translation helpful? Give feedback.
-
im getting an same issue on nextjs 14. its works on every device expect iphone 💔 |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue. Self hosted. Everything was okay except in prod. This message would display on first page visit and never after. Disabling cache in the network tab would reproduce it, and requests to fetch .js files would return 503. The issue was my nginx config, and increasing my rate limits fixed it. Seems like this occurs to a few people for all sorts of different reasons. This was mine |
Beta Was this translation helpful? Give feedback.
-
I have encountered this problem, I tried to redirect user from /a route to /b route using redirect next js function, so it is giving this kind of error. I used middleware for redirecting now everything is fine. |
Beta Was this translation helpful? Give feedback.
I fixed it thanks to this issue, I was forced to gather data, and I identified why I was not able to reproduce it locally: because I was logged in.
When not logged in, there was a
usePathname
not wrapped in a suspense. Wrapping the component fixed the issue.