nhagen / react-intercom

A component to configure and enable Intercom in your react application
MIT License
237 stars 72 forks source link

Cannot resolve module 'prop-types' in ......./node_modules/react-intercom/lib #30

Closed leonielindo closed 7 years ago

leonielindo commented 7 years ago

Currently using react ^15.4.2. I added import Intercom from 'react-intercom'; added nothing else as I wanted to make sure the page renders with this new addition but got the console error message:

Cannot resolve module 'prop-types' in ......./node_modules/react-intercom/lib

its referring to line 16: var _propTypes = require('prop-types');

stephymiehle commented 7 years ago

@leonielindo Our team ran into issues with this too; something seems to have broken in the latest update. Running a previous version (npm i react-intercom@1.0.11 --save), we were able to install the package. Could help in the meantime!

nhagen commented 7 years ago

Sorry about this--the issue is that prop-types is listed as a devDependency in package.json, so its not getting installed with the package. I'll get to this tomorrow and push a new version.

leonielindo commented 7 years ago

@blindingstars thank you for the recommendation, I will use version 1.0.11 for now and until @nhagen pushes the new version thank you both for getting back to me so quickly.

nhagen commented 7 years ago

This should be fixed in 1.0.13. Let me know if anyone is still seeing this.