-
Notifications
You must be signed in to change notification settings - Fork 34
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] Setup with sveltekit fails #160
Comments
Same here but using We can fix this by removing |
Do you have a repo where I can test this setup ? |
Any news on this? Can we support? Looks like the compiler can not parse Svelte?
|
@tomolenet does the workaround mentioned at storybookjs/builder-vite#321 (comment) solve your issue? |
Yes, it seems to work. I tested it here. It seems to work now that you just have to remove |
Describe the bug
I'm trying to get this to run, but it fails to start.
Key differences from readme:
import { sveltekit } from '@sveltejs/kit/vite';
instead of using@sveltejs/vite-plugin-svelte
@storybook/sveltekit
instead of@storybook/svelte-vite
I'm using a monorepo, hence the node_modules folder is one layer above my project.
My .storybook/main.js file looks like the following:
One thing that stands out to me is the
getAbsolutePath('@storybook/sveltekit'),
piece, which differs from the README, but is afaik the new supported framework. ThegetAbsolutePath
part of it was auto-generated from thenpx storybook@latest init
command already, which detected the monorepo setup.Also, this is sveltekit, so in my vite config I'm not using
'@sveltejs/vite-plugin-svelte
, but insteadimport { sveltekit } from '@sveltejs/kit/vite';
, which also differs from the README.Screenshots and/or logs
Environment
Versions
I'd appreciate any help around what else I could try to get this to work!
The text was updated successfully, but these errors were encountered: