Skip to content

[Bug] Basic button story for Svelte 4 and Storybook 8 fails #188

Open
@cge-taal

Description

@cge-taal

Describe the bug

Following the basic button story example, gives the following error:

TypeError: Cannot destructure property 'story' of 'o' as it is undefined.
    at normalizeStory (http://localhost:6006/sb-preview/runtime.js:7110:62)
    at http://localhost:6006/sb-preview/runtime.js:7180:15
    at Array.forEach (<anonymous>)
    at processCSFFile (http://localhost:6006/sb-preview/runtime.js:7178:25)
    at li.memoizerific [as processCSFFileWithCache] (http://localhost:6006/sb-preview/runtime.js:127:95)
    at li.loadCSFFileByStoryId (http://localhost:6006/sb-preview/runtime.js:7832:17)
    at async li.loadStory (http://localhost:6006/sb-preview/runtime.js:7861:13)
    at async http://localhost:6006/sb-preview/runtime.js:8146:20
    at async pi.runPhase (http://localhost:6006/sb-preview/runtime.js:8139:94)
    at async pi.prepare (http://localhost:6006/sb-preview/runtime.js:8145:9)

Steps to reproduce the behavior

Try the example above with the following stack

  • svelte : 4.2.18
  • storybook : 8.2.1
  • @storybook/addon-svelte-csf : 4.1.4

Using framework '@storybook/sveltekit' (in main.ts)

I'm basically trying to find the best Storybook experience for Svelte 4, with <slot/> support.

Does this plugin support Storybook 8 already?

Is this plugin still necessary for Storybook 8 and Svelte 4, with <slot/> support ?

Any links to the best working examples would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    legacyRelated to the legacy version(s)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions