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

fix(gatsby-plugin-layout): log uncaught errors in old browsers #9635

Merged
merged 2 commits into from
Nov 4, 2018

Conversation

birkir
Copy link
Contributor

@birkir birkir commented Nov 1, 2018

IE11 doesn't show the actual error, just Error: Uncaugt error thrown without any stack traces.

There is no way to implement try/catch around this as this module is the first entry point.

Adding an Error Boundary on the Layout component does not work.

@pieh pieh changed the title Log uncaught errors in old browsers fix(gatsby-plugin-layout): log uncaught errors in old browsers Nov 4, 2018
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @birkir!

@pieh pieh merged commit 099d47e into master Nov 4, 2018
@pieh pieh deleted the birkir/layout-error branch November 4, 2018 16:55
gpetrioli pushed a commit to gpetrioli/gatsby that referenced this pull request Jan 22, 2019
…yjs#9635)

IE11 doesn't show the actual error, just `Error: Uncaugt error thrown` without any stack traces.

There is no way to implement try/catch around this as this module is the first entry point.

Adding an Error Boundary on the Layout component does not work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants