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

Make export default work in main.ts #18063

Closed
shilman opened this issue Apr 26, 2022 · 3 comments
Closed

Make export default work in main.ts #18063

shilman opened this issue Apr 26, 2022 · 3 comments

Comments

@shilman
Copy link
Member

shilman commented Apr 26, 2022

works:

const config: StorybookConfig = { };
module.exports = config;

fails:

const config: StorybookConfig = { };
export default config;
@eddiemonge
Copy link
Contributor

Preferably without having to configure Babel just to load things in the .storybook folder

@prashantpalikhe
Copy link
Contributor

@shilman this should also be taken care of if we use JITI or esbuild-require in the serverRequire. I will shoot out a PR soon with a fix.

@shilman
Copy link
Member Author

shilman commented Jun 9, 2023

Happy to report that this is fixed in SB7!

Migration guide: https://storybook.js.org/migration-guides/7.0

@shilman shilman closed this as completed Jun 9, 2023
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

3 participants