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
Neto
Netoβ€’3y ago
You don't import sass files directly
Neto
Netoβ€’3y ago
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…
Leke
LekeOPβ€’3y ago
oh! you mean sass doesnt work directly in react ?
Neto
Netoβ€’3y ago
Yes
Leke
LekeOPβ€’3y ago
everything was working before i declared the variable
Neto
Netoβ€’3y ago
You don't import directly the sass file You import the file generated from the sass file
Leke
LekeOPβ€’3y ago
ok This means that the sass file needs to be converted to css file the css file is what should be imported right ?
Neto
Netoβ€’3y ago
Yes I do believe that vscode has a extension that watches and transpiles the sass files
Leke
LekeOPβ€’3y ago
yes it has i have it installed but i dont know how to make it work i will go through the article
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server