Change `node-sass` to `sass` because `node-sass` is deprecated
Created by: jhxxs
Is your proposal related to a problem?
I build a small demo based on CRA, yet I encountered a problem where some sass features can't work, like @use "sass.string"
and some other built-in modules.
At first I am using node-sass
recommended by CRA documentation.
After trying different solutions and reviewing github issues, I found a very efficient way.
配合CRA搭建demo看sass官网文档时发现有些特性不支持,把create-react-app官方文档推荐的node-sass
换成sass
就ok了。
Describe the solution you'd like
If you want use new features of sass, please remove node-sass
module in your CRA project and use sass
instead.
npm uninstall node-sass
npm i sass --save
Additional context
Hope CRA documentation would change it or at least append a tip.