Any react code running on codesandbox.io will result in the page throwing up with the following:
TypeError
Cannot read property 'forEach' of undefined
Object.injectIntoGlobalHook
https://y2mx3.csb.app/node_modules/react-refresh/cjs/react-refresh-runtime.development.js:461:20
evaluate
https://y2mx3.csb.app/node_modules/__csb/react-dom-entrypoint.js:3:9
H
https://codesandbox.io/static/js/sandbox.ca04802af.js:1:99575
G.evaluate
https://codesandbox.io/static/js/sandbox.ca04802af.js:1:111943
(anonymous function)
https://codesandbox.io/static/js/sandbox.ca04802af.js:1:214309
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
This error overlay is powered by `react-error-overlay` used in `create-react-app`.
Any react code running on codesandbox.io will result in the page throwing up with the following:
seems to relate to their react-refresh integration, added here https://github.com/codesandbox/codesandbox-client/pull/3014