Closed leonielindo closed 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!
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.
@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.
This should be fixed in 1.0.13. Let me know if anyone is still seeing this.
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');