Skip to content

[Bug] cannot use some names in imports #167

Open
@oxymc

Description

@oxymc

Note

This issue as a possible workaround

Describe the bug

Can't use:
import { Menu } from './index'; in index.stories.svelte
(but it works, if 'Menu' will be changed by other word: 'DropdownMenu' for example)

Steps to reproduce the behavior

  1. Create a new sveltekit app: npm create svelte@latest <name-of-app>
  2. Now add storybook npx storybook init
  3. Now add Svelte CSF
  4. Reproduce the issue

Expected behavior

More details are in screenshots

Screenshots and/or logs

Знімок екрана 2024-01-29 о 09 15 32 Знімок екрана 2024-01-29 о 09 18 06

Environment

  • OS: macOS Sonoma 14.1.2
  • Node.js version: v18.17.1
  • NPM version: 10.0.0
  • Browser (if applicable): Chrome
  • Browser version (if applicable): 121.0.6167.85
  • Device (if applicable): MacBook Pro 2019

Additional context

Will be good to know which words are 'forbidden' too, but will be great to fix it :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    has workaroundThis issue has a possible workaround

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions