-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
"babel-loader@7.1.2" has unmet peer dependency "webpack@2 || 3" #4589
Comments
Hi! Using yarn 1.2.1, node 8.6.0, MSYS2 under Windows x64, I cannot reproduce (I get two react releated peer dependency warnings instead, but they seem legit). @alansouzati, could you confirm this is fixed in latest yarn? :-) For reference, I used the following STR:
|
I think we've fixed this with the 1.2.0 line. Thanks a lot @edmorley for checking :) |
I can still reproduce this error. Steps to reproduce:
Gives the following output:
Node: v8.6.0 |
@reinseth, the error is correct in that example - those dependencies are missing (that example doesn't install them, unlike the STR in the original post). babel-loader 7.1.2 has a See the installation instructions here: |
Ah, thanks, I missed that. But there is still something interesting going on:
|
Same here. I also get this error as soon as I also install babel-cli. |
Me three. Reprouced this today in a sterile development environment being set up from scratch with @latest everything. babel-core, babel-loader, babel-cli. Getting complaints as if babel-core 7.x is a requirement, when it isn't out yet. |
This solved it for me on ubuntu 16.04 -- node v8.9.0 lts/carbon -- npm 5.5.1 -- yarn 1.2.1: |
Yeah, that shut the yarn complaints up, but left me with a bunch of other problems. Groan. Anything with references to "@next" "@latest" and crap like that is going to break in about a week. In the interests of preserving the sanity of anyone finding this while pulling their hair out, here is a consistent package.json hard version set that seems to work for me at the moment, with yarn, in a Visual Studio 2017 environment, writing Office Add-in stuff, right now, today, 03OCT2017:
Hopefully that at least helps some people landing on this problem. |
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
The following structure in peerDependency does not show any warning with
npm install
.https://github.com/babel/babel-loader/blob/master/package.json#L19
Replacing
"webpack": "2 || 3"
with"webpack": "^2.0.0 || ^3.0.0"
removes the warning.FYI the peer webpack version is set to
3.4.1
If the current behavior is a bug, please provide the steps to reproduce.
Run yarn install
What is the expected behavior?
No warnings
Please mention your node.js, yarn and operating system version.
Node: 6.11.x
Yarn: 1.1.0
OSx 10
The text was updated successfully, but these errors were encountered: