Open TitusEfferian opened 3 months ago
The version of next in you repo (14.2.5) does not match the version i n bug report (13.5.5) , also the repo does not reproduce the behavior described in the bug report (because of version), review your repo first.
done updating @AliRazaDev27
Link to the code that reproduces this issue
https://github.com/TitusEfferian/next-13-3-5-error-repro/blob/main/src/app/TestLayoutChild.tsx
To Reproduce
npm install
npm run build
npm run start
http://localhost:3000/another_path
Current vs. Expected behavior
Current Behavior
It's not handled by the global error; instead, it is rendered by the default error UI from Next.js.
Expected Behavior
Handled by the global error if the error comes from a sub-path.
Actually, if the error is triggered on the root page, it works as expected, but if it's triggered by another path, it's not working.
I also checked with the later version
14.2.5
, and it works in that version.Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure, create-next-app
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local)
Additional context
No response