-
-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
peerDependencies is deprecated #47
Comments
oh thank god! :) I'm in lazy mode, since is kinda late already here... so sorry for asking this, but what's the best approach? Just move peerDependencies to regular dependencies? |
Yes I think you can make babel-core a dependency and drop webpack (which doesn't seem to be used by your tests either). |
I don't see anywhere in that issue that they are going to be removed. The issue says their behavior will change (no longer automatically installing). |
I didn't say it would be removed :). But |
Why not? It's a way to specify compatibility. |
If babel-core was moved to dependencies it'd be more complicated to pick specific Babel builds from your app's |
Well it's already in the dependencies https://github.com/babel/babel-loader/blob/master/package.json#L7 |
It's in the dependencies for consistency with other babel utilities like grunt-babel and gulp-babel In my opinion babel-core should live in the peer dependencies without requesting a specific version (*) so that users can pick their favorite version, however I'll do like others do to avoid confusion inside the babel's ecosystem. I'm going, eventually, to remove the current peer dependencies in the next versions. |
Yeah it's tricky, because I agree with gaearon's point (and had similar complaints with jscs-loader). Hah, perhaps peerDependencies is the way to go after all in this case. |
The current README is misleading because peerDependencies are not deprecated. Auto-installing is deprecated. And I can confirm @gaearon concerns: It should stay as peerDependencies. I've experienced similar issues with the less- and sass-loader. |
I agree :) However I can't really fix it right now (or today) if you're up for a PR that should be faster! |
Is it intended behavior that |
I don't think it's intended behavior. Delete both, set most recent versions in package.json and run npm install again? |
That changes nothing, which makes sense, because if you look in the Edit: three times even. |
@SpaceK33z lol, you're right! I don't know why. @sairion Any idea why it's both a peer, a regular, and a dev dep? |
Actually, for no special reason other than it was left forgotten. A PR is more than welcome, and I'll try to merge as soon as possible, since I am on mobile! On August 10, 2015 12:30:24 PM GMT+01:00, Dan Abramov notifications@github.com wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
In #94 I've deleted the peer and dev dependency. This would the most consistent option, right? |
Hey guys I'm getting
But there's no "xxx@version wants yyy@version" in the npm-debug.log file — Any clue if this might be related to that? |
You probably already have |
For reference - |
In short,
peerDependencies
should probably be removed:See for context: npm/npm#6565
The text was updated successfully, but these errors were encountered: