Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throwing error in head.ts/js doesn't get caught by nearest error.ts/js file #44962

Open
1 task done
franzwarning opened this issue Jan 17, 2023 · 0 comments
Open
1 task done
Labels
template: bug A user has filled out the bug report template. Issue needs triaging

Comments

@franzwarning
Copy link

franzwarning commented Jan 17, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

All environments

Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

Link to the code that reproduces this issue

https://stackblitz.com/edit/vercel-next-js-ery9v2

To Reproduce

Visit the "/error-throw" link in the provided code snippet

Describe the Bug

Throwing an error in head.tsx doesn't get caught by error.tsx file

Expected Behavior

Expect errors thrown in head.tsx to bubble to nearest error component

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@franzwarning franzwarning added the template: bug A user has filled out the bug report template. Issue needs triaging label Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template: bug A user has filled out the bug report template. Issue needs triaging
Projects
None yet
Development

No branches or pull requests

1 participant