Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-sass has been deprecated #1491

Open
andromaque opened this issue Apr 19, 2021 · 2 comments
Open

node-sass has been deprecated #1491

andromaque opened this issue Apr 19, 2021 · 2 comments

Comments

@andromaque
Copy link

Node Sass has been deprecated in October 2020 (https://sass-lang.com/blog/libsass-is-deprecated)
Now the recommendation is to use "sass" instead of "node-sass".

We have environments where node-sass is not present anymore, and it's not possible to use underscores themes because they are still using node-sass.

Is it planned to update it?

@GenieTim
Copy link

GenieTim commented May 4, 2021

The update is rather doable:

Run the following commands:

yarn remove node-sass
yarn add --dev sass

and adjust the build scripts in package.json from node-sass sass/ -o ./ to sass sass/:./ and node-sass sass/ -o ./ --source-map true --output-style expanded --indent-type tab --indent-width 1 -w to sass sass/:./ --source-map true --output-style expanded --indent-type tab --indent-width 1 -w.

@gomarion
Copy link

gomarion commented Jul 4, 2021

I came across this problem today and tried the commits made by @vjandrea. I was able to successfully run a working WATCH script, but the "sass" package (replacement of node-sass) from NPM only gave me more issues when compiling. I ended up installing NVM and then install the latest usable versions of NPM and Node JS which are 6.14.8 and v14.14.0. WATCH script is working fine for my project again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants