Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESM/ES Module project support #17591

Closed
psychobolt opened this issue Feb 27, 2022 · 2 comments
Closed

ESM/ES Module project support #17591

psychobolt opened this issue Feb 27, 2022 · 2 comments

Comments

@psychobolt
Copy link

psychobolt commented Feb 27, 2022

Is your feature request related to a problem? Please describe
Storybook currently fails to require main.mjs or main.js if projects are configured to use { "type": "modules" }

ES Modules. E.g. ERR! Error [ERR_REQUIRE_ESM]: require() of ES Module <some_project_path>/.storybook/main.js not supported.

Describe the solution you'd like
Storybook can build and run without any problems for projects with ESM formated config.

Describe alternatives you've considered
Just sticking with commonJS... #16181

Are you able to assist to bring the feature to reality?
No, I am hoping someone can chime in. For now I am using the workaround. Just creating this feature request for future work tracking...

@psychobolt
Copy link
Author

Closing since its being worked on and tracking release for 7: https://storybook.js.org/blog/storybook-6-2/

@CarlosBalladares
Copy link

same on 6.5
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants