Comments (18)
thats seems like a bug in npm u_U 0.13.x and 0.13 is pretty much the same unless react-0.14 is out and I didn't see that!
from react-router-bootstrap.
Indeed, they both highlight 0.13.0
through 0.13.3
on http://semver.npmjs.com/
from react-router-bootstrap.
unless react-0.14 is out
from react-router-bootstrap.
anyway I gave it more thought..
the clean installation works fine, I'm closing.
$ rm -rf node_modules
$ npm run i
from react-router-bootstrap.
It seems this is the cause why react-router
sets react
dependency that way: [email protected]
from react-router-bootstrap.
We should do the same since any react updates are pretty majors right now.
from react-router-bootstrap.
I've found the culprit.
It is this line: "react": "*"
package.json#L54
If I change it to "react": ">0.10.0"
then everything is fine.
I've got a question before I can PR this change.
What is the minimal sufficient version of react here ?
from react-router-bootstrap.
Should be 0.13.x
I'd think?
from react-router-bootstrap.
maybe for the benefit of safety >0.10.0
?
though I presume those who has active React projects - in theory - has to update them already at least to 0.12
but we still can just for safety set it to >0.10.0
from react-router-bootstrap.
Theoretically, the lower that doesn't break it!
from react-router-bootstrap.
This has cropped up again
I'm not sure if it's somehow configuration dependent, but if I create a new directory, and attempt to install react-bootstrap locally I consistently get peerinvalid
for all versions that I've tested (0.18, 0.19, HEAD) using npm 2.9.0
Example:
catskul$ npm install [email protected]
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN peerDependencies The peer dependency react-bootstrap@>=0.22.4 included from react-router-bootstrap will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency react-router@>=0.13.1 included from react-router-bootstrap will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency [email protected] included from react-router will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency react@>=0.14.0 included from react-bootstrap will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency react-dom@>=0.14.0 included from react-bootstrap will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency react@>=0.11.0 included from uncontrollable will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency react@>=0.14.0 included from react-overlays will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency react-dom@^0.14.0 included from react-overlays will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm ERR! Linux 3.16.0-44-generic
npm ERR! argv "/home/catskul/.nvm/versions/io.js/v2.0.2/bin/iojs" "/home/catskul/.nvm/versions/io.js/v2.0.2/bin/npm" "install" "[email protected]"
npm ERR! node v2.0.2
npm ERR! npm v2.9.0
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants react@>=0.14.0
npm ERR! Please include the following file with any support request:
npm ERR! /home/catskul/tmp/test-react-bootstrap/npm-debug.log
from react-router-bootstrap.
You can see the error in your own logs:
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants react@>=0.14.0
And RRB v0.19.x requires a React Router v1.0.0 prerelease anyway.
from react-router-bootstrap.
Not sure I understand. How should installing a single package locally in a fresh local dir (no other installs done) ever create a peerinvalid error?
from react-router-bootstrap.
You have two packages that require incompatible peer dependencies.
from react-router-bootstrap.
But they're pulled in by react-router-bootstrap. I did not specify those packages.
from react-router-bootstrap.
Oh. I see. Unfortunately that's just NPM2's peer dependency handling for you - you'll need to explicitly specify React-Bootstrap v0.26.x.
from react-router-bootstrap.
that's just NPM2's peer dependency handling for you
Apparently something I've not yet discovered, but that certainly worked. Thanks! : )
Should react-router-bootstrap not itself include dependency information to prevent this situation from happening, or is it something that is not resolvable that way?
from react-router-bootstrap.
We'd have to cut a new v0.18.x release that explicitly excluded React Bootstrap >= v0.27.0. I'm not sure that's worth the effort.
from react-router-bootstrap.
Related Issues (20)
- Exception with react-router v6: (0, _reactRouterDom.withRouter)(LinkContainer) is not a function HOT 5
- `LinkContainer` turns all children's tags into `a`'s. HOT 1
- Why is this not part of react-bootstrap? I would prefer not to do a separate install. HOT 1
- LinkContainer to={..} does not read state variable
- Could not load react-router-dom
- react-router-dom v 6.x? HOT 18
- LinkContainer does not work in router-dom v6 HOT 1
- react-router-bootstrap LinkContainer wrapping a Nav.Link incompatible with latest react-router-dom v.6.0.2 HOT 3
- LinkContainer doesn't actually support NavLink props (className, style) HOT 2
- uhh..types? HOT 2
- Importing react-router-bootstrap includes all of lodash HOT 1
- Dependency Dashboard
- Support for Next.js?
- LinkContainer requires pathname in 'to' object. Link does not. HOT 1
- LinkContainer does not pass along "state" property
- Crashing randomly on dev - useNavigate() may be used only in the context of a <Router> component HOT 2
- Can't use search params in LinkContainer to prop HOT 1
- Standard <Link> tag loose active class while selecting bootstrap dropdown option
- 'LinkContainer' cannot be used as a JSX component. Its type 'LinkContainer' is not a valid JSX element type.
- Doesn't work for forms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-router-bootstrap.