Skip to content
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

yarn always complain babel-loader@8.2.5" has unmet peer dependency "@babel/core@^7.0.0" #940

Closed
HillLiu opened this issue Apr 26, 2022 · 3 comments

Comments

@HillLiu
Copy link

HillLiu commented Apr 26, 2022

Current behavior:

warning "reshow-app > babel-loader@8.2.5" has unmet peer dependency "@babel/core@^7.0.0".

inside my yarn.lock

"@babel/core@^7.11.1", "@babel/core@^7.7.5", "@babel/core@^7.7.7", "@babel/core@^7.x":
  version "7.17.9"
  resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.9.tgz#6bae81a06d95f4d0dec5bb9d74bbc1f58babdcfe"
  integrity sha512-5ug+SfZCpDAkVp9SFIZAzlW18rlzsOcJGaetCjkySnrXXDUw9AR8cDUm1iByTmdWM6yxX6/zycaV76w3YTF2gw==
  dependencies:
    "@ampproject/remapping" "^2.1.0"
    "@babel/code-frame" "^7.16.7"
    "@babel/generator" "^7.17.9"
    "@babel/helper-compilation-targets" "^7.17.7"
    "@babel/helper-module-transforms" "^7.17.7"
    "@babel/helpers" "^7.17.9"
    "@babel/parser" "^7.17.9"
    "@babel/template" "^7.16.7"
    "@babel/traverse" "^7.17.9"
    "@babel/types" "^7.17.0"
    convert-source-map "^1.7.0"
    debug "^4.1.0"
    gensync "^1.0.0-beta.2"
    json5 "^2.2.1"
    semver "^6.3.0"
  • What is the expected behavior?
    try dismiss this warning.

  • What is the motivation / use case for changing the behavior?
    Maybe try change peer dependency "@babel/core@^7.0.0" to "@babel/core@^7.x"

@JLHwung
Copy link
Contributor

JLHwung commented Apr 27, 2022

7.17.9 is included in @babel/core@^7.0.0. Do you have @babel/core in package.json? Does https://www.npmjs.com/package/yarn-deduplicate fixes the problem?

@HillLiu
Copy link
Author

HillLiu commented Apr 27, 2022

I'll close and check this first.

@HillLiu HillLiu closed this as completed Apr 27, 2022
@HillLiu
Copy link
Author

HillLiu commented Apr 27, 2022

Check this only happen on my monorepository, no issue for main folder. so it's safe to close.

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

No branches or pull requests

2 participants