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

ReferenceError: window is not defined in Qwik 1.4.2 #72

Open
literalpie opened this issue Feb 17, 2024 · 4 comments
Open

ReferenceError: window is not defined in Qwik 1.4.2 #72

literalpie opened this issue Feb 17, 2024 · 4 comments

Comments

@literalpie
Copy link
Owner

I see this warning in the console when using qwik 1.4.2, but not earlier versions. As far as I can tell, it doesn't actually break anything?

11:23:29 AM [vite] Error when evaluating SSR module /Users/benjaminkindle/Developer/temp/dec-qwik-sb/src/routes/layout.tsx:
|- ReferenceError: window is not defined
    at eval (/Users/benjaminkindle/Developer/temp/dec-qwik-sb/src/routes/layout.tsx:17:4)
    at async instantiateModule (file:///Users/benjaminkindle/Developer/temp/dec-qwik-sb/node_modules/vite/dist/node/chunks/dep-stQc5rCc.js:54696:9)
@kumarasinghe
Copy link

This is affecting me as well. Appreciate it if this could be fixed!

@thasmo
Copy link

thasmo commented May 17, 2024

Experiencing the same with qwik 1.5.4 and storybook 8.1.1.

@literalpie
Copy link
Owner Author

Is anyone seeing something broken because of this, or is it only the console error?

@thasmo
Copy link

thasmo commented May 27, 2024

Is anyone seeing something broken because of this, or is it only the console error?

Not sure, tbh. Started learning/testing Qwik and Storybook and it's just a bit distracting when trying to figure out things. :)

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

3 participants