Skip to content

Undefined "global" variable #1657

Closed Answered by sergiodxa
jessapp asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by machour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants