-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Get ReferenceError: window is not defined, when updating kit from 1.7.2 to ^1.8.0 #9518
Comments
EDIT: my bad. They're not related |
If it's not possible for you to provide a minimal reproduction, it's not possible for anyone to help you. |
It was vite related after all. funny that this changed from kit@1.7.2 to kit@1.8.0
with esbuildOptions:
to make pouchdb and other libs which depend on "window" work. |
Describe the bug
I have a medium complex SPA with works offline through workbox and pouchdb.
When updating from kit 1.7.2 to any version higher than 1.8.0 I get this errror in my terminal and a 500 Internal error in the browser:
It is impossible for me to make an minimal example, because of the complexity of the code. So if anybody could give me an idea what changed between 1.7.2 and 1.8.0 which could possible cause this error, I would be very grateful.
I have the usual SPA configs in place and everything works from version 1.0.0 on without problem, so i really don't know where to start debugging.
Thanks a lot for your time
Reproduction
Not possible, because of the complexity of the app.
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: