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

fix: storybook wont start and causes in ModuleBuildError ('loose' mode configuration in babel) #907

Merged
merged 1 commit into from
Apr 16, 2023

Conversation

alimpam
Copy link
Contributor

@alimpam alimpam commented Apr 14, 2023

Proposed solution

Storybook wont start, because of:

ModuleBuildError: Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: /Users/alim/repos/react-rnd/storybook-init-framework-entry.js: 'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled).
Solution:
Set loose mode true for babel/plugin-proposal-class-properties

Tradeoffs

(unknown)

Testing Done

After changes, storybook runs again and works like expected.

Copy link
Owner

@bokuweb bokuweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@bokuweb bokuweb merged commit 42948d0 into bokuweb:master Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants