-
Notifications
You must be signed in to change notification settings - Fork 273
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
Usage with Storybook 6.2.0-beta.2 fails due to improper resolution of Webpack #435
Comments
@kirill-konshin how do I repro this? |
Here's the sandbox: https://codesandbox.io/s/storybook-webpack5-svg-sprite-loader-2kl7e?file=/.storybook/main.js If it does not launch automatically, create a new terminal tab and do
Somehow there's no true trace, but it's this line: https://github.com/JetBrains/svg-sprite-loader/blob/master/lib/utils/get-matched-rule-4.js#L3 and as you see, it's for WP4... |
So far I came up with following fix:
Did the trick for me. |
Any updates? This is still an issue... |
any updates? |
What is the current behavior?
If user has Storybook of version 6.2 and newer, and if user has it configured to use Webpack 5, there will be two Webpack versions installed: version 5 for stories and version 4 for manager. Somehow the following statement in file
lib/utils/get-webpack-version.js
Returns the version 4, I patched in
node_modules
toAnd it properly resolved to version 5.
What is the expected behavior?
Please provide either the option to override webpack version via loader config, or correctly resolve the proper webpack.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: