react-form-builder icon indicating copy to clipboard operation
react-form-builder copied to clipboard

global can't be used in context of browser

Open M-Mubashir674 opened this issue 2 years ago • 1 comments

Encountring following error:

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

M-Mubashir674 avatar Nov 13 '23 09:11 M-Mubashir674

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>

mikeand avatar Nov 16 '23 05:11 mikeand