addon-kit icon indicating copy to clipboard operation
addon-kit copied to clipboard

[Bug] Exports config break vite based build

Open morewings opened this issue 2 years ago • 0 comments

Describe the bug

When user runs Storybook on vite ESM exports config (.mjs) makes it are not capable to build.

Steps to reproduce the behavior

  1. Set up vite based storybook
  2. Install [email protected]
  3. Run build-storybook
  4. Error happens.

Expected behavior

Should work

Screenshots and/or logs

Available here https://github.com/morewings/storybook-addon-theme-provider/issues/11

Additional context

I managed to fix it by removing exports config from package.json and using only cjs build. Not sure if it's the best way.

morewings avatar Oct 20 '23 21:10 morewings