Problem
Running npm run build emits repeated Dart Sass deprecation warnings:
DEPRECATION WARNING [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
The warning appears once for each SCSS compilation. The current build stack uses react-scripts@3.0.1 with sass-loader@10.5.2; that loader calls Dart Sass through the legacy render() API.
Why it matters
Dart Sass 2.0.0 will remove the legacy JS API, so this is future breakage rather than just noisy output.
Acceptance criteria
npm run build completes without any legacy-js-api Sass warnings.
- The SCSS/CSS output remains equivalent for the existing app.
- The fix keeps the CRA 3 build wrapper working on the current Node baseline.
Problem
Running
npm run buildemits repeated Dart Sass deprecation warnings:The warning appears once for each SCSS compilation. The current build stack uses
react-scripts@3.0.1withsass-loader@10.5.2; that loader calls Dart Sass through the legacyrender()API.Why it matters
Dart Sass 2.0.0 will remove the legacy JS API, so this is future breakage rather than just noisy output.
Acceptance criteria
npm run buildcompletes without anylegacy-js-apiSass warnings.