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

Define process.platform in react-error-overlay's iframe bundle #12351

Closed
wants to merge 1 commit into from
Closed

Define process.platform in react-error-overlay's iframe bundle #12351

wants to merge 1 commit into from

Conversation

maxdavidson
Copy link
Contributor

react-error-overlay is broken since 6.0.10, due to the upgrades in #11624 transitively bring in chalk into the react-error-overlay iframe bundle.

chalk calls process.platform which is not available in browsers, making the code crash. This has side effects of causing the iframe overlay to not disappear, preventing the user from being able to click on anything.

This is a quick fix that overrides process.platform, to make it not crash.

Fixes: #11773, #12064, #12212
Duplicate of #12121?

@EnoahNetzach
Copy link
Contributor

#12212 has nothing to do with react-error-overlay; this PR most probably won't fix the issue described there, sadly.

@maxdavidson maxdavidson closed this by deleting the head repository Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is this the bug of react-error-overlay?
3 participants