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

global can't be used in context of browser #289

Open
M-Mubashir674 opened this issue Nov 13, 2023 · 1 comment
Open

global can't be used in context of browser #289

M-Mubashir674 opened this issue Nov 13, 2023 · 1 comment

Comments

@M-Mubashir674
Copy link

Encountring following error:

"Uncaught ReferenceError: global is not defined
at node_modules/draft-js/node_modules/fbjs/lib/setImmediate.js"

@mikeand
Copy link

mikeand commented Nov 16, 2023

I worked around this using the suggestion in here: https://stackoverflow.com/questions/65586906/react-and-electron-with-draft-js-global-is-not-defined

I basically added this in the index.html head section:

<script> const global = globalThis; </script>

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

No branches or pull requests

2 participants