Sass
sass/no-node-sass
Compile Sass with Dart Sass (the sass or sass-embedded package), never node-sass, which is deprecated LibSass.
moderatestaticfe-sass
Why
node-sass wraps LibSass, which the Sass team deprecated: it gets no new features (no @use, no math.div, no modern colour functions), builds a native binary that often fails to install on new Node.js versions, and compiles some code differently from the Sass everyone else runs.
Fix
Replace it with sass (or sass-embedded, which is faster on large projects) and point the bundler at it; Vite, webpack's sass-loader and the framework CLIs pick it up by name. Then fix the deprecation warnings Dart Sass prints, starting with @import (sass/no-import).
Examples
// bad
"devDependencies": { "node-sass": "^9.0.0" }
// good
"devDependencies": { "sass": "^1.108.2" }Sources
Facts
- Id
sass/no-node-sass- Severity
- moderate
- Check
- static checked in the source by
audit - Applies to
project- Only in projects with
sass- Taught by the skill
fe-sassSass (SCSS)- Since version
- 0.1.0
Read it in the terminal
npx github:dawidolko/frontend-skills explain sass/no-node-sass