GithubHelp home page GithubHelp logo

Comments (18)

dozoisch avatar dozoisch commented on May 13, 2024

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.

mathieumg avatar mathieumg commented on May 13, 2024

Indeed, they both highlight 0.13.0 through 0.13.3 on http://semver.npmjs.com/

from react-router-bootstrap.

AlexKVal avatar AlexKVal commented on May 13, 2024

unless react-0.14 is out

indeed
screen shot 2015-06-09 at 9 04 03 pm

from react-router-bootstrap.

AlexKVal avatar AlexKVal commented on May 13, 2024

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.

AlexKVal avatar AlexKVal commented on May 13, 2024

It seems this is the cause why react-router sets react dependency that way: [email protected]

from react-router-bootstrap.

dozoisch avatar dozoisch commented on May 13, 2024

We should do the same since any react updates are pretty majors right now.

from react-router-bootstrap.

AlexKVal avatar AlexKVal commented on May 13, 2024

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.

taion avatar taion commented on May 13, 2024

Should be 0.13.x I'd think?

from react-router-bootstrap.

AlexKVal avatar AlexKVal commented on May 13, 2024

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.

mathieumg avatar mathieumg commented on May 13, 2024

Theoretically, the lower that doesn't break it!

from react-router-bootstrap.

catskul avatar catskul commented on May 13, 2024

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.

taion avatar taion commented on May 13, 2024

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.

catskul avatar catskul commented on May 13, 2024

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.

taion avatar taion commented on May 13, 2024

You have two packages that require incompatible peer dependencies.

from react-router-bootstrap.

catskul avatar catskul commented on May 13, 2024

But they're pulled in by react-router-bootstrap. I did not specify those packages.

from react-router-bootstrap.

taion avatar taion commented on May 13, 2024

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.

catskul avatar catskul commented on May 13, 2024

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.

taion avatar taion commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.