question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught ReferenceError: global is not defined

See original GitHub issue

After 396004e, started seeing the following error (in the browser):

Uncaught ReferenceError: global is not defined

Perhaps we could do a quick check for global

doc = doc || (typeof global !== 'undefined' ? global.document : document)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
steadicatcommented, Mar 27, 2017

This breaks React. Any ETA on a fix?

0reactions
zpaocommented, Mar 30, 2017

Shipped v0.8.12.

More info on the proposal for global: https://github.com/tc39/proposal-global. It looks like there are some problems though… 😞

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught ReferenceError: global is not defined #2141 - GitHub
ncaught ReferenceError: global is not defined at Object../node_modules/buffer/index.js (index.js:43) at webpack_require (bootstrap:76)
Read more >
Upgrading to angular-6.x gives "Uncaught ReferenceError
Then you're getting the following error Fix: "Uncaught ReferenceError: global is not defined" do it as follows node: { global: true, fs: 'empty ......
Read more >
How to fix the ReferenceError: global is not defined error in ...
That sound simple enough to fix, just create a vite. config. [js/ts] file, add it to your SvelteKit project and define global right?...
Read more >
Uncaught ReferenceError: global is not defined - YouTube
Uncaught ReferenceError : global is not defined at node_modules/@walletconnect/socket-transport/dist/esm/index.jscreate a n ew filw named ...
Read more >
index.js:43 uncaught referenceerror: global is not defined
Angular 7: Uncaught ReferenceError: global is not defined when adding package. Asked Jan 24, 2019 • 30 votes 5 answers. QUESTION ANSWERS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found