Error in function getGlobalObject in ./node_modules/voca/index.js:3595 · Issue #57 · panzerdp/voca · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing the library should not throw an exception.
Actual behavior 😿
Following exception is thrown:
global is not defined
Error in function getGlobalObject in ./node_modules/voca/index.js:3595
3593 | if (typeof global === 'object' && global.Object === Object) {
3594 | // NodeJS global object
> 3595 | globalObject$1 = global;
Steps to reproduce 👷
This seems to be an issue using voca in the latest major update of Gatsby (v3), or perhaps Webpack?
From what I can gather, voca is initialising the global object using "global" (ie NodeJS instance) even though this is a browser instance, I don't understand why it would be entering that if statement
Welcome to Voca's GitHub repo!
Expected behavior 😸
Importing the library should not throw an exception.
Actual behavior 😿
Following exception is thrown:
global is not defined
Steps to reproduce 👷
This seems to be an issue using voca in the latest major update of Gatsby (v3), or perhaps Webpack?
From what I can gather, voca is initialising the global object using "global" (ie NodeJS instance) even though this is a browser instance, I don't understand why it would be entering that if statement
Technical details: 🔧
Browser/OS type: Chrome/ Ubuntu 20
Node version: v12.21.0
The text was updated successfully, but these errors were encountered: