Search code examples
reactjsreact-icons

React-icons module not found: can't resolve '../lib"


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?


Solution

  • This isn't much of an answer, but I ran this

    npm uninstall react-icons
    npm install [email protected]
    

    and that resolved the issue.