-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Broken build Storybook 6.3.7 + Webpack 5 #15882
Comments
This seems related to the It defaults to
If I remove |
Okay I figured out how to fix the build for my setup, my // extend existing config in my `browserslist` file, and remove `maintained node versions`
// https://github.com/browserslist/browserslist#full-list
const target = 'browserslist:browserslist config, not maintained node versions';
export default {
// ...
managerWebpack(config) {
config.target = target;
return config;
},
webpackFinal(config, { configType }) {
config.target = target;
return config;
}
}; The trickiest part was to find out how to fix the manager build, as |
I'm also facing an issue with the following .browserslistrc although a bit different...
I'm working with WebPack 4 and Storybook 6.4.0-rc11 I already tried removing the lines one by one without success.
In my case though, the issue happens with Webpack 4 => #16824 |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I'm getting the same "regeneratorRuntime is not defined" error with webpack 5 and Storybook 6.4.10 |
Thanks for posting this, I was able to get the build beyond this point by adding the fixes suggested above (Although, I just set the |
storybook: 6.5.7 Tried a variety of fixes with reference to what @nstepien suggested, still getting issues when building for an Angular project. My .browserslistrc file is empty so it fetches the default list from the browserslist config but it fails this way. Explicitly setting the default config lines let's it transpile for some strange reason:
but at the end I receive this new error:
I assume this is directly related to the migration into the angular json file, adding EDIT: currently does not work with Node 16.15.0 + NPM 8.5.5, related: #18298 (comment) |
Broken build with latest Storybook (6.3.7) + Webpack 5
main.js
main.js
worked with Storybook 6.2.8 + Webpack 4System
Additional context
starting with
start-storybook -p 6006 -s ./public
-s
gets ignored with6.3.7
and creates own dist folderThere are 2 issues which come up after trying to start it, sometimes it's:
webpack5 build + dev build works as expected, but storybook fails unfortunately.
The text was updated successfully, but these errors were encountered: