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

Support mocha ^11.0 as peer dependency #94

Open
leorolland opened this issue Dec 15, 2024 · 0 comments
Open

Support mocha ^11.0 as peer dependency #94

leorolland opened this issue Dec 15, 2024 · 0 comments

Comments

@leorolland
Copy link

Mocha 11 is out,

When trying to install ts-mocha with mocha 11, I get the following error

$ npm i ts-mocha --save-dev
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/mocha
npm error   dev mocha@"^11.0.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer mocha@"^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X" from [email protected]
npm error node_modules/ts-mocha
npm error   dev ts-mocha@"*" 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.

Unfortunately, ts-mocha only supports up to mocha 10 in peer dependency from package.json.

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