Edge 17- ReferenceError: 'globalThis' is not defined
See original GitHub issue"@zxing/browser": "^0.0.5",
"@zxing/library": "^0.18.3",
When using this library under Edge 17, I am getting a reference error :
ReferenceError: 'globalThis' is not defined
at @zxing/browser/umd/zxing-browser.js: 65
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
ReferenceError: globalThis is not defined - npm - Stack Overflow
Consider updating your version of node.js to >=12 . globalThis was added in node.js v12.0.0 according to this compatibility table.
Read more >'globalThis' is not defined - Microsoft Community
I am not able to access any files on Microsoft Teams and any time I try to ''globalThis' is not defined" keeps coming...
Read more >globalThis is not defined although node version is v14.4.0
If you experience errors saying that globalThis is not defined, be sure to run a recent version of Node.js (at least 12.0). node...
Read more >'globalThis is not defined' in JSS Site - Rock, Paper, Sitecore
[NodeInvocationException: globalThis is not defined ReferenceError: globalThis is not defined at react.Component.react.Component.
Read more >ReferenceError: globalThis is not defined
ZimBaroo's Geeks Sharing - At ZimBaroo's Geeks we embrace learning as a life style. Here on this blog we Geeks share quick programming...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will Microsoft and it’s browsers never stop breaking JavaScript libraries? I don’t think so.
This approach using
globalThis || ...
should already solve that, as it does not we gonna need to ponyfill the access of the global object by the library. Well, it’s not gonna be THAT fast to solve, we gonna need to at least create a function that returns the “globalThis” and has lots oftypeof
inside.Closing as fixed in https://github.com/zxing-js/browser/releases/tag/v0.0.6 .