-
-
Notifications
You must be signed in to change notification settings - Fork 29
Broken with css-loader >= 6.0.0 #22
Comments
Hi! Thanks for opening this issue. I'm having trouble recreating the issue. All of the examples work just fine for me. Could you create a minimal reproduction example? It might help to know that I recently found out that because of some package resolutions that storybook has, the version of css loader that's actually resolved is v3.x. This leads me to ask the following question: is this a bug that in theory should happen, or is this something you're actually seeing? Btw, I agree, it's totally expected to think that this addon should break given the info you just gave. |
Ok, this is more complex than I thought at first. The issue is surfaced in my project by a workaround to #23 that is using "nohoist" on the yarn workspace to keep the Doing this decouples the versions of I would still say this is a bug, despite manifesting only in specific circumstances, because I'm still trying to setup a minimal reproduction scenario based on the one I created for #23, but it's becoming a nightmare because it seems the upstream storybook packages don't bode well with yarn workspaces too :/ |
- remove css-loader (not even needed) - remove style-loader (not even needed as well) fixes #22
So turns out See #25 |
🎉 This issue has been resolved in version 1.6.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
Due to this breaking change on css-loader 6.0.0:
And due to the the version constraint ^6.5.1 the addon is broken because of current css-loader config that uses old format
requiring [email protected] (before the breaking changes) is a workaround
Your minimal, reproducible example
the repo examples should all be failing on storybook start 🤔
Steps to reproduce
install with css-loader >6.0.0
Expected behavior
storybook should start
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
macOs
storybook-addon-next version
1.4.2
Additional context
No response
The text was updated successfully, but these errors were encountered: