close

[Solved] Cannot find module ‘sass’ in reactjs

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to run my react app But unfortunatly it cant find sass module here is error that I am facing off Cannot find module ‘sass’ in reactjs. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Cannot find module ‘sass’ in reactjs Error Occurs ?

I am trying to run my react app But unfortunatly it cant find sass module here is error that I am facing off.

Cannot find module 'sass'
Require stack:

How To Solve Cannot find module ‘sass’ in reactjs Error ?

  1. How To Solve Cannot find module 'sass' in reactjs Error ?

    To Solve Cannot find module 'sass' in reactjs Error You just need to globally install sass module with this plugin. First of all you need to forcefully clear your cache with this plugin: npm cache clear –force Now, You have to install sass module with this command: npm install sass Now, your error must be solved.

  2. Cannot find module 'sass' in reactjs

    To Solve Cannot find module 'sass' in reactjs Error Here node-sass is deprecated as by now! Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass. So that You just need to globally install sass module with this plugin. First of all you need to forcefully clear your cache with this plugin. Now, your error must be solved.

Solution 1

Here node-sass is deprecated as by now! Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass.

So that You just need to globally install sass module with this plugin. First of all you need to forcefully clear your cache with this plugin.

npm cache clear --force

Now, You have to install sass module with this command.

npm install sass

OR Install sass Globally

npm i -g sass

or Locally

npm i sass --save-dev

Now, your error must be solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

4 thoughts on “[Solved] Cannot find module ‘sass’ in reactjs”

Leave a Comment