-
ProblemI need to use react-live in my Remix app. When I try to use their components, I get the following error: See this repository for a reproduction (go to this file to see the The stack trace in my browser console leads me back to I'm not totally clear on why Solutions I have triedBecause I suspect this may have something to do with Node JS vs browser JS, I tried to install Does anybody know why |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The global object is a Node only thing. It doesn’t exists on the browser. I think webpack does change global to window or globalThis, but since Remix doesn’t use webpack that doesn’t work, and most likely that package was coded expecting webpack specific and non standard behavior. I would open an issue on their repository to ask them to use window or globalThis. |
Beta Was this translation helpful? Give feedback.
The global object is a Node only thing. It doesn’t exists on the browser.
I think webpack does change global to window or globalThis, but since Remix doesn’t use webpack that doesn’t work, and most likely that package was coded expecting webpack specific and non standard behavior.
I would open an issue on their repository to ask them to use window or globalThis.