Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Reports unmet peer dependencies even when those dependencies are installed #2

Open
ResidentMario opened this issue Feb 11, 2018 · 1 comment

Comments

@ResidentMario
Copy link

After installing this library via npm in an environment where react and react-dom are present, npm begins the complain that these libraries are missing peer dependencies.

alex@Alex:~/Desktop/nyc-subway-explorer-webapp$ npm list --depth=0
[email protected] /home/alex/Desktop/nyc-subway-explorer-webapp
├── @google/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

alex@Alex:~/Desktop/nyc-subway-explorer-webapp$ npm install react-leaflet-sidebarv2 --save
npm WARN [email protected] requires a peer of react@^15.6.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^15.6.1 but none is installed. You must install peer dependencies yourself.

+ [email protected]
added 1 package in 1.548s
alex@Alex:~/Desktop/nyc-subway-explorer-webapp$ npm list --depth=0

[email protected] /home/alex/Desktop/nyc-subway-explorer-webapp
├── @google/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

npm ERR! peer dep missing: react@^15.6.1, required by [email protected]
npm ERR! peer dep missing: react-dom@^15.6.1, required by [email protected]
@markhepburn
Copy link
Contributor

Hi @ResidentMario , thanks for the report.

That looks like just the version of react the peer-dep specifies. I haven't tested with versions later than 15.6, but I'll happily take a PR if you can give it a quick test and widen the version spec.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants