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

babel-loader 10 not accepted as a peer dependency - requires 8 <> 9 #938

Closed
Jesus-Adaptive opened this issue Mar 10, 2025 · 1 comment
Closed

Comments

@Jesus-Adaptive
Copy link

Is your feature request related to a problem? Please describe.

When upgrading to babel-loader 10.x these package's peer dependency of babel 8 <> 9 conflicts with my installed packages.

Describe the solution you'd like

Can you upgrade babel-loader peer dependency to the latest 10? (if it does not cause any conflicts on your side)

Describe alternatives you've considered

It works if I run npm install with --legacy-peer-deps flag - but I don't want to "force" packages to install with an incorrect peer dependency.

Additional context

npm install output:

$ npm i

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: root@undefined
npm error Found: [email protected]
npm error node_modules/babel-loader
npm error   dev babel-loader@"^10.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer babel-loader@"^8.3 || ^9" from @cypress/[email protected]
npm error node_modules/@cypress/code-coverage
npm error   dev @cypress/code-coverage@"^3.13.12" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
@Jesus-Adaptive
Copy link
Author

I discovered it's actually not a peer dependency of this package, but instead of: @cypress/webpack-preprocessor.

Closing this.

Thanks

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

1 participant