Module not found bootstrap.min.css

Hi, everyone,

I have installed bootstrap package to work in React JS, but this message appears: ‘Module not found: Can’t resolve ./node_modules/bootstrap/dist/css/bootstrap.min.css’
I notice that the node_modules folder is greyed out.

Does anybody know a workaround? Thanks in advance!

share the project if is public. Is greyed out because of .gitignore so that is not the problem

The problem is the path

May need something like "../node_modules or ../../node_modules … depends of where the file is located in regards to the root directory.
Share the project and I can help out.

1 Like

Thanks, GeorgeCrisan, for the help.

Really ‘…/…/node_modules’ dealt with the issue.

All the best, bro!

1 Like