1

Unable to build webpack production due to Node Sass Module build failed.

Below is Node Sass Error

enter image description here

enter image description here

enter image description here

kaizen
  • 1,580
  • 4
  • 26
  • 50
  • 1
    Why do you think this is causing your error? What is the error message you are receiving? Where are these files being used? Please create a [reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). – Chris B. Sep 24 '19 at 00:20
  • 1
    Hi, thanks for helping out. I have included additional screenshots of the error. – kaizen Sep 24 '19 at 00:29
  • 1
    No problem. A quick Google shows that this is as the error states, probably an issue with the Node Sass library. I can't see why the posted devDependencies would have any effect on loading CSS files. Have you tried [this link](https://medium.com/@proustibat/how-to-fix-error-node-sass-does-not-yet-support-your-current-environment-os-x-64-bit-with-c1b3298e4af0)? – Chris B. Sep 24 '19 at 00:33
  • 1
    I see, i will edit the post. I tried npm rebuild node-sass, unfortunately it did not work. – kaizen Sep 24 '19 at 00:38
  • 2
    Ah, wish I could be more help, I've never used that particular library, but the dependencies you've listed shouldn't affect building/loading CSS files at all. Maybe [this answer](https://stackoverflow.com/questions/37324519/node-sass-does-not-yet-support-your-current-environment-linux-64-bit-with-false) will be of more help. – Chris B. Sep 24 '19 at 00:41

2 Answers2

2

I was able to able to fix the Node Sass module build error by uninstalling and reinstalling node sass using the command below.

npm uninstall --save-dev node-sass

npm install --save-dev node-sass
kaizen
  • 1,580
  • 4
  • 26
  • 50
  • What it worked for me is delete node_modules directory and execute `npm install`, and then execute the command above from Kevin Lee. – Ignacio Sánchez Sep 26 '19 at 10:49
0

Please downgrade your node version , I have used 12.18.1 and my error was gone

vishal rathod
  • 187
  • 2
  • 5