Answers for "e build failed (from ./node_modules/sass-loader/dist/cjs.js): sasserror: there is no module with the namespace "math"."

5

error /node_modules/node-sass: Command failed

// for yarn
yarn remove node-sass
yarn add sass
// for npm
npm uninstall node-sass
npm i sass
Posted by: Guest on November-01-2021
0

Error: Cannot find module 'node-sass'

If you want to use scss/sass in your react app try to do this :

First remove node-sass:

yarn remove node-sass

if you use npm:
npm uninstall node-sass

Then install sass instead of node-sass:
yarn add -D sass

or

npm i -D sass

Finally your scss/sass files will be correctly compiled !
Posted by: Guest on December-10-2021

Code answers related to "e build failed (from ./node_modules/sass-loader/dist/cjs.js): sasserror: there is no module with the namespace "math"."

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language