Skip to content

[Bug] Exports config break vite based build #58

@morewings

Description

@morewings

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 storybook-addon-theme-provider@0.1.10
  3. Run build-storybook
  4. Error happens.

Expected behavior

Should work

Screenshots and/or logs

Available here morewings/storybook-addon-theme-provider#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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions