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

global is missing in vitejs setup #367

Open
zirhoo opened this issue Dec 21, 2024 · 0 comments · May be fixed by #368
Open

global is missing in vitejs setup #367

zirhoo opened this issue Dec 21, 2024 · 0 comments · May be fixed by #368

Comments

@zirhoo
Copy link

zirhoo commented Dec 21, 2024

You should have this line added to root.ts (entry file for your app)

window.global ||= window;
zirhoo referenced this issue in zirhoo/react-waypoint Dec 21, 2024
some builder such as vitejs don't have global variable in this context
@zirhoo zirhoo linked a pull request Dec 21, 2024 that will close this issue
@zirhoo zirhoo changed the title FYI when you use this package using vitejs global is missing in vitejs setup Dec 21, 2024
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

Successfully merging a pull request may close this issue.

1 participant