-
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] Type error typeof Meta
when used with Svelte 3
#121
Comments
Are you using Svelte 3? I'm using Svelte 3 in my SvelteKit project and also encountered the same type errors. This might be an issue with new types in Svelte 4. I created a new SvelteKit project with Svelte 4 and no errors showed up. |
I already feared that this would be the case, thanks for confirming it! |
Fixed by upgrading to Svelte 4. This dependency needs to drop Svelte 3 from it's peer dependencies here since it's misleading: https://github.com/storybookjs/addon-svelte-csf/blob/main/package.json#L98 |
typeof Meta
when used with Svelte 3
@RSWilli seems like Svelte 4 did break our typing system after all - I'm not sure there's an easy fix here. My suggestion would be to release a new major which only allows Svelte 4 as a peer dependency. |
I believe this is fixed now. Please use version 3.0.10 of this plugin with Svelte 3 and version 4 of this plugin with Svelte 4 |
Describe the bug
I am encountering TS issues with all imports from
@storybook/addon-svelte-csf
:The exact same message with a different
typeof
is repeated forTemplate
andStory
imports.Expected behavior
No TS issues
Environment
Additional context
Story looks like this:
Config is as follows:
The text was updated successfully, but these errors were encountered: