Closed
requested to merge github/fork/maxdavidson/fix-missing-process-in-error-overlay-iframe into main
Created by: maxdavidson
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.