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

[Bug]: Svelte 5 decorator giving type error #29951

Open
twoends opened this issue Dec 7, 2024 · 0 comments
Open

[Bug]: Svelte 5 decorator giving type error #29951

twoends opened this issue Dec 7, 2024 · 0 comments

Comments

@twoends
Copy link

twoends commented Dec 7, 2024

Describe the bug

The decorator option gives a type error on the imported component:
Svelte: Type Component<Props, {}, ''> has no properties in common with type SvelteStoryResult<Component<Props, {}, ''>>

Reproduction link

https://stackblitz.com/edit/github-h1zsrmcf?file=src%2Fstories%2FButton.stories.ts

Reproduction steps

  1. Go to the above link
  2. Wait a bit for the scripts to run
  3. Look at the error on line 18

System

Storybook Environment Info:

  System:
    OS: Windows 11 10.0.22621
    CPU: (6) x64 Intel(R) Core(TM) i5-9600KF CPU @ 3.70GHz
  Binaries:
    Node: 22.11.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.1 - ~\AppData\Roaming\npm\npm.CMD <----- active
  Browsers:
    Edge: Chromium (127.0.2651.74)
  npmPackages:
    @storybook/addon-a11y: ^8.4.7 => 8.4.7
    @storybook/addon-essentials: ^8.4.7 => 8.4.7
    @storybook/addon-interactions: ^8.4.7 => 8.4.7
    @storybook/addon-svelte-csf: ^5.0.0-next.13 => 5.0.0-next.13
    @storybook/blocks: ^8.4.7 => 8.4.7
    @storybook/svelte: ^8.4.7 => 8.4.7
    @storybook/sveltekit: ^8.4.7 => 8.4.7
    @storybook/test: ^8.4.7 => 8.4.7
    chromatic: ^11.20.0 => 11.20.0
    eslint-plugin-storybook: ^0.11.1 => 0.11.1
    storybook: ^8.4.7 => 8.4.7

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant