Skip to content

[Bug] Exact same Stories doesn't render same way regarding their location ( ./src/** vs ./node_modules/** ) #183

Open
@LeMouf

Description

@LeMouf

Describe the bug

Using addon-svelte-csf to create svelte stories, it work perfectly when they are in the src folder tree, but as soon as they are package ( exact same file ) and end up in the node_modules folder tree, it seems to lose something and end up to an errors :

No primary story attached to this docs file, did you forget to use <Meta of={} />?

image

Steps to reproduce the behavior

  1. add a package with component and stories using addon-svelte-csf

  2. add the same components + stories in a forlder in src file tree

  3. configure the main.ts to use the stories of the src and the node_modules folders
    image

  4. launch storybook, an see the src one working as expected and the node_modules reach an error ( cf: screenshot )

Expected behavior

Same Behavior for the two kind of usage, as for a classic stories this way of doing work without any issues

Environment

  • OS: Windows
  • Node.js version: v21.5.0
  • NPM version: 10.5.0

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