Reputation: 33
I've just installed react-icons and tried to import an icon and I get this error.
./node_modules/react-icons/fa/index.esm.js
Module not found: Can't resolve '../lib' in
'/Users/nathanbarry/Programming/personalsite/node_modules/react-icons/fa'
I've looked at the package in the node_modules and there IS a lib folder there.
I've tried reinstalling it and that didn't work. What could be the problem and how to fix it?
Upvotes: 1
Views: 1585
Reputation: 66
This isn't much of an answer, but I ran this
npm uninstall react-icons
npm install [email protected]
and that resolved the issue.
Upvotes: 5