Hello everyone I just added sass in all possible ways to my app by npm install sass by npm install node-sass by yarn add sass-loader even by sudo npm install --save-dev --unsafe-perm node-sass all these commands by yarn also and my app tells me to add sass :/

2 Answers
Oh I finally did it, I don't know for sure but I guess when installing a new thing node sass or anything you should re-run the react app refresh or even ctrl+f5 won't work I have right now 2 tabs of my react app one is http://localhost:3000/ the other one http://localhost:3001 I commanded yarn start again after installing and it work while the first one is still open and it doesn't work
Hope this will help others
Comments
Below is the documented process for adding sass to react app using yarn
yarn add node-sass
Rename the .css files to .scss and update the import statements.
I just did it on my machine and it works.
8 Comments
npx create-react-app my-app 2. Run yarn add node-sass 3. Change the filenames and imports. Hope it should work

sudo npm install --save-dev --unsafe-perm node-sass" - you really shouldn't do that - a malicious npm package could destroy your entire system or plant a kernel-mode rootkit/spyware program.node-sassglobally? If no install itnpm install -g node-sassgloballynode_modulesand re-runnpm installoryarn, whichever you use?