-
-
Notifications
You must be signed in to change notification settings - Fork 29
CSS @import throws error #19
Comments
Thanks for opening the issue! The pull request above fixes the error although I'm not happy with the solution. I think there is a better one I'm missing. The details are spelled out in the pull request description. By any chance do you have insight? |
Sorry, I don't |
@RyanClementsHax Thanks for resolving this so quickly! |
So it turns out that Because
No problem! |
🎉 This issue has been resolved in version 1.4.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@RyanClementsHax Thanks for more details about the issue. I've had issues on previous storybook setups with different It's also an issue when you use the There is also an issue with the wrong version of webpack resolving on a storybook install. Which I think is to do with |
Describe the bug
When using CSS @import in a
.css
the below error is thrown.Your minimal, reproducible example
https://github.com/andykenward/storybook-addon-next/commit/4a67992f3aa3e809944b38eb961e02892bee48a3
Steps to reproduce
your-file.css
file tostyles
folder. Perhaps with some css in the file.@import './your-file.css'
intostyles/global.css
.yarn storybook
.You should get an error and crash.
Expected behavior
To support
@import
in.css
files.How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
14.18.2
&16.13.0
storybook-addon-next version
1.4.1
Additional context
This does not happen in version 1.4.0.
The text was updated successfully, but these errors were encountered: