React Typescript SassError Undefined variable
I need some help on this please π I am new to using
sass
with react && typescript
, so I declared a variable in a scss
file but all I'm getting is an error that says Undefined variable
10 Replies
You don't import sass files directly
Medium
Adding SASS/SCSS to your React + TypeScript project
If you have worked with CSS before then you truly know the pain of working with a large project with thousands of lines of styling whereβ¦
oh! you mean sass doesnt work directly in react ?
Yes
everything was working before i declared the variable
You don't import directly the sass file
You import the file generated from the sass file
ok
This means that the sass file needs to be converted to css file the css file is what should be imported
right ?
Yes
I do believe that vscode has a extension that watches and transpiles the sass files
yes it has
i have it installed
but i dont know how to make it work
i will go through the article
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View