Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: global is not defined #75

Open
bithaolee opened this issue Dec 18, 2022 · 5 comments
Open

Uncaught ReferenceError: global is not defined #75

bithaolee opened this issue Dec 18, 2022 · 5 comments

Comments

@bithaolee
Copy link

core.js:221
Uncaught ReferenceError: global is not defined
at capture (core.js:221:28)
at node_modules/react-code-blocks/node_modules/refractor/core.js (core.js:5:15)
at __require2 (chunk-62VDRKYJ.js?v=20a5b317:19:50)
at prism-light.js:2:23

@VenoM9078
Copy link

Were you able able to fix this? I'm also getting this error while trying to use react-code-blocks in my React app.

@granteagon
Copy link

Same. Any luck?

@imollm
Copy link

imollm commented Feb 20, 2023

Same here

Uncaught ReferenceError: global is not defined
    at capture (core.js:221:28)
    at node_modules/refractor/core.js (core.js:5:15)
    at __require (chunk-DFKQJ226.js?v=8327f63f:8:50)
    at prism-light.js:2:23
  • node: v19.0.0
  • vite: v4.1.0
  • react: v18.2.0

@felixyeboah
Copy link

any fix for this? i have been stuck on this error for days.

@levpachmanov
Copy link

vitejs/vite#5912 (comment) worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants