-
Notifications
You must be signed in to change notification settings - Fork 32
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
[Bug] - Bug with Vite 6 and @sveltejs/vite-plugin-svelte v5 #238
Comments
Which version of Storybook are you using? Could be related to the fact that Vite EDIT: It likely might be released in |
Hey there, as soon as we release a new Storybook patch as @xeho91 stated, can you please try it out? This issue should hopefully be resolved. |
8.4.6 is released with Vite 6 support. 🎉 https://github.com/storybookjs/storybook/releases/tag/v8.4.6 |
Hi team,
|
The latest version of Storybook which supports Vite See this comment. You can try this out and let us know if you're still encountering any errors. |
HI @xeho91 , Getting the same error with Here are the dependencies: {
"@chromatic-com/storybook": "^3.2.2",
"@fontsource/fira-mono": "^5.1.0",
"@neoconfetti/svelte": "^2.2.1",
"@storybook/addon-essentials": "^8.4.6",
"@storybook/addon-interactions": "^8.4.6",
"@storybook/addon-svelte-csf": "^4.2.0",
"@storybook/blocks": "^8.4.6",
"@storybook/svelte": "^8.4.6",
"@storybook/sveltekit": "^8.4.6",
"@storybook/test": "^8.4.6",
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/kit": "^2.9.0",
"@sveltejs/vite-plugin-svelte": "^5.0.1",
"storybook": "^8.4.6",
"svelte": "^5.2.12",
"svelte-check": "^4.1.0",
"typescript": "^5.7.2",
"vite": "^6.0.1"
} Also tried with the alpha version but got the same error. I created the project using svelte CLI {
"@chromatic-com/storybook": "^3.2.2",
"@storybook/addon-essentials": "^8.5.0-alpha.14",
"@storybook/addon-interactions": "^8.5.0-alpha.14",
"@storybook/addon-svelte-csf": "^5.0.0-next.13",
"@storybook/blocks": "^8.5.0-alpha.14",
"@storybook/svelte": "^8.5.0-alpha.14",
"@storybook/sveltekit": "^8.5.0-alpha.14",
"@storybook/test": "^8.5.0-alpha.14",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-storybook": "^0.11.1",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"mdsvex": "^0.11.2",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.6",
"storybook": "^8.5.0-alpha.14",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"typescript": "^5.0.0",
"typescript-eslint": "^8.0.0",
"vite": "^5.0.3"
} I originally had Node 23 installed, I downgraded to 20 and 18. The issue persists for me across these node versions.
|
@umaranis could you please provide a minimal reproduction so we can check it out? Thanks! |
For reproduction steps, I created a new svelte project using {
"@chromatic-com/storybook": "^3.2.2",
"@eslint/compat": "^1.2.3",
"@playwright/test": "^1.45.3",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
"@storybook/addon-svelte-csf": "^5.0.0-next.13",
"@storybook/blocks": "^8.4.7",
"@storybook/svelte": "^8.4.7",
"@storybook/sveltekit": "^8.4.7",
"@storybook/test": "^8.4.7",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.9.0",
"@sveltejs/vite-plugin-svelte": "^5.0.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"mdsvex": "^0.11.2",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.6",
"storybook": "^8.4.7",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"typescript": "^5.0.0",
"typescript-eslint": "^8.0.0",
"vite": "^6.0.0",
"vitest": "^2.0.4"
} |
Following #238 (comment) In the first case, this likely was the problem: {
"@chromatic-com/storybook": "^3.2.2",
"@fontsource/fira-mono": "^5.1.0",
"@neoconfetti/svelte": "^2.2.1",
"@storybook/addon-essentials": "^8.4.6",
"@storybook/addon-interactions": "^8.4.6",
- "@storybook/addon-svelte-csf": "^4.2.0",
+ "@storybook/addon-svelte-csf": "^5.0.0-next.13",
"@storybook/blocks": "^8.4.6",
"@storybook/svelte": "^8.4.6",
"@storybook/sveltekit": "^8.4.6",
"@storybook/test": "^8.4.6",
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/kit": "^2.9.0",
"@sveltejs/vite-plugin-svelte": "^5.0.1",
"storybook": "^8.4.6",
"svelte": "^5.2.12",
"svelte-check": "^4.1.0",
"typescript": "^5.7.2",
"vite": "^6.0.1"
} In the second case, hard to tell, but those used versions have nothing to do with the subject of this issue: {
"@chromatic-com/storybook": "^3.2.2",
"@storybook/addon-essentials": "^8.5.0-alpha.14",
"@storybook/addon-interactions": "^8.5.0-alpha.14",
"@storybook/addon-svelte-csf": "^5.0.0-next.13",
"@storybook/blocks": "^8.5.0-alpha.14",
"@storybook/svelte": "^8.5.0-alpha.14",
"@storybook/sveltekit": "^8.5.0-alpha.14",
"@storybook/test": "^8.5.0-alpha.14",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
- "@sveltejs/vite-plugin-svelte": "^4.0.0",
+ "@sveltejs/vite-plugin-svelte": "^5.0.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-storybook": "^0.11.1",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"mdsvex": "^0.11.2",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.6",
"storybook": "^8.5.0-alpha.14",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"typescript": "^5.0.0",
"typescript-eslint": "^8.0.0",
- "vite": "^5.0.3"
+ "vite": "^6.0.0"
} I understand you had those version issues while generating the project template with To sum up, it seems like the original issue is possibly resolved given the #238 (comment). |
Describe the bug
All the stories are bugged and does not work.
Steps to reproduce the behavior
Expected behavior
It should starts the Storybook with no error.
Screenshots and/or logs
Environment
@storybook/addon-svelte-csf: v5.0.0-next.13
vite: 6.0.1
@sveltejs/vite-plugin-svelte: 5.0.1
OS: MacO
Node.js version: 22.11.0
Yarn version: 4.5.2
Browser (if applicable): chrome
Device (if applicable): MacbookPro
The text was updated successfully, but these errors were encountered: