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

Error when evaluating SSR module #74

Open
k-schneider opened this issue Jun 25, 2024 · 0 comments
Open

Error when evaluating SSR module #74

k-schneider opened this issue Jun 25, 2024 · 0 comments

Comments

@k-schneider
Copy link

I am seeing this error in the terminal when starting storybook after migrating everything to latest:

...
"@builder.io/qwik": "^1.5.7",
"@builder.io/qwik-city": "^1.5.7",
...
"@storybook/addon-essentials": "8.1.10",
"@storybook/addon-links": "8.1.10",
"@storybook/blocks": "8.1.10",
"@storybook/builder-vite": "8.1.10",
"@storybook/html": "8.1.10",
"@storybook/html-vite": "8.1.10",
...
"storybook": "8.1.10",
"storybook-framework-qwik": "0.4.0",
...
"vite": "^5.3.1",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^0.34.6"

Full error is:

Error when evaluating SSR module C:/path/to/project/src/routes/layout.tsx:
|- ReferenceError: window is not defined
    at eval (C:\path\to\project\src\routes\layout.tsx:33:4)
    at async instantiateModule (file:///C:/path/to/project/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:5)

The storybook UI still loads and seems to function.

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

1 participant