Skip to content Skip to sidebar Skip to footer

Can't Resolve '../node_modules/bootstrap/dist/css/bootstrap.min.css'?

I am trying to use react-bootstrap-table2 in my project to create a simple bootstrap table, but am getting the error: Failed to Compile: Module not found: Can't resolve '../node_m

Solution 1:

Try this:

import'bootstrap/dist/css/bootstrap.min.css';

When not specifying a path, Node/webpack will search for the import inside node_modules folder. I'm not sure what's going wrong, but this is the correct way to import modules from the node_modules folder.

Post a Comment for "Can't Resolve '../node_modules/bootstrap/dist/css/bootstrap.min.css'?"