react-csv: Module not found: Error: Cannot resolve module 'prop-types' in ...node_modules/react-csv/lib
Getting the following on an install and basic usage from Readme.
[1] ERROR in ./~/react-csv/lib/metaProps.js
[1] Module not found: Error: Cannot resolve module 'prop-types' in /Users/mateodelnorte/development/dotbc/dotbc-queue-site/node_modules/react-csv/lib
[1] @ ./~/react-csv/lib/metaProps.js 12:17-38
[1] webpack: Failed to compile.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 8
- Comments: 18
Commits related to this issue
- fix: add prop-types dep !! https://github.com/react-csv/react-csv/issues/27#issuecomment-315017475 !! — committed to mestihudson/microservices-ticketing by mestihudson 2 years ago
you need prop-types module.
npm install --save prop-typesi can’t install the prop-types using this command
npm install --save prop-typesit shows me this: npm ERR! path /home/ashu/Documents/Ashu/Tech/Projects/React/demo/node_modules/prop-types/package.json npm ERR! code ELOOP npm ERR! errno -40 npm ERR! syscall open npm ERR! ELOOP: too many symbolic links encountered, open ‘/home/ashu/Documents/Ashu/Tech/Projects/React/demo/node_modules/prop-types/package.json’npm ERR! A complete log of this run can be found in: npm ERR! /home/ashu/.npm/_logs/2018-06-05T06_58_55_705Z-debug.log
Try
npm install --save prop-types --legacy-peer-depsit will ignore the version error if you do that.I finally found it ! go to Run and Debug tab ( or tap ctrl+Shift+D) in the drop-down menu choose : 'Run current file ’ it should work without problem now 💯
Same error here and npm install --save prop-types not worked.