Module not found: Error: Can't resolve 'react-bootstrap-validation' Module not found: Error: Can't resolve 'react-bootstrap-validation' reactjs reactjs

Module not found: Error: Can't resolve 'react-bootstrap-validation'


Module not found error occurs when you are using some module and that module is not installed or node is unable to locate that module due to wrong path.

One module you are trying to install have either dependency on othermodules as well

so sometime not all the modules are installed correctly due to some permission security issues.

So please try with giving all permission or run as Root and add sudo if you are using ubuntu machine.

So you can install that module via directly running the following command:-

npm install react-bootstrap-validation --save

or if you are using linux/ubuntu than run following command:-

sudo npm install react-bootstrap-validation --save

Or first please check in the console when installing the module that

is there any dependency error showing in the console

if so then please also attach that console, on that case you need to install dependent module also as separately via npm install.

Hope this will help!

Thanks


You can try to use this:

npm i --save react-bootstrap


If the accepted answer doesn't work for you, it could be that your version of bootstrap-react is newer than the version of whatever you're trying to implement/emulate.

For me, I checked the package.json file of the tutorial I was looking at and found:

"react-bootstrap": "^1.5.2",

You can also just run npm list in the project if you have it downloaded on your machine.

But when I ran npm list on my own project I got

react-bootstrap@2.0.0

So I ran

npm install react-bootstrap@1.5.2

and resolved the issue.