Closed brittneypostma closed 8 months ago
Your story is named "Button" which generate an "export const Button = ..."
You can rename your story or rename the import Button.
We can probably improve the error message but I don't think it's possible to automatically let it works
Yeah, I just actually got it working and was coming back to say this. I think the error message is a little confusing.
Describe the bug
Storybook version
7.4.6
also happens with version7.5.1
addon-svelte-csf version4.0.9
When loading csf and then attempting to write a story using it, there is an error that the Button import has already been declared.
Steps to reproduce the behavior
'@storybook/addon-svelte-csf'
to addons array inmain.ts
<button type="button" on:click class:primary {...$$restProps}>
<Story name="Primary" args={{ primary: true }} id="primary">