storybook-framework-qwik icon indicating copy to clipboard operation
storybook-framework-qwik copied to clipboard

ReferenceError: window is not defined in Qwik 1.4.2

Open literalpie opened this issue 1 year ago • 4 comments

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)

literalpie avatar Feb 17 '24 16:02 literalpie

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

kumarasinghe avatar May 07 '24 07:05 kumarasinghe

Experiencing the same with qwik 1.5.4 and storybook 8.1.1.

thasmo avatar May 17 '24 19:05 thasmo

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

literalpie avatar May 24 '24 12:05 literalpie

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. :)

thasmo avatar May 27 '24 15:05 thasmo