Storybook ESM naming clashes #1084
basselalsayed
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
Svelte newbie react convert here. Thank you for the work on this project it's amazing.
I'm building a UI library using storybook and noticed there are some strange errors due to naming clashes when the svelte file's export and import names clash. A good example is the calendar component, since the export is
Calendar
but it also has a renamed module ofimport * as Calendar
. I'm finding myself doing quite a bit of renaming. For the calendar example, simply changing toimport * as SubComponents
will do the trick.I don't know if this is a bundling error on the storybook side (although it's using the official svelte vite plugin) or known ESM issue but I didn't want this to be a blocker for people using this library so thought I'd leave this here
Beta Was this translation helpful? Give feedback.
All reactions