Next.js Discord

Discord Forum

Client-side exception thrown

Unanswered
Chartreux posted this in #help-forum
Open in Discord
ChartreuxOP
Should this error be picked up by global-error.tsx or an error.tsx?

4 Replies

ChartreuxOP
Application error: a client-side exception has occured (see the browser console for more information).
If you already have an error.tsx or global-error.tsx and it’s not working, I believe the error boundaries aren’t shown in dev mode:/ try building the app and see the production version
@LuisLl If you already have an `error.tsx` or `global-error.tsx` and it’s not working, I believe the error boundaries aren’t shown in dev mode:/ try building the app and see the production version
ChartreuxOP
im able to trigger from the production version, but will they catch the client-side exception like the one above? im only able to trigger server side with throw new Error("") in a server component
yes they will