Proper way to work with scss files in components #28396
Unanswered
ashleyyy94
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hi, does anyone know what is the latest way for Storybook to work with SCSS files? I'm importing SCSS files in my react component using
import css from './styles/index.scss';
and using them in the component like this
<div className={css.ge_Counter_MinusIcon}>
. However, I keep getting the error which is css is undefined. My main.ts config is using the @storybook/addon-styling-webpack addon. Like thisAny help is appreciated as I have been banging my head on this for 4 days already. Thank you!
Additional information
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions