question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: npm install fails with latest jest 29.0.3

See original GitHub issue

Version

2.2.2

Steps to reproduce

1,Use jest 29.0.3 as dependency with latest jest-preset-angular 2.2.2 2, npm install fails ERESOLVE unable to resolve dependency tree

Expected behavior

npm install works

Actual behavior

npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: xxx@3.0.1 npm ERR! Found: jest@29.0.3 npm ERR! node_modules/jest npm ERR! dev jest@“29.0.3” from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer jest@“^28.0.0” from jest-preset-angular@12.2.2 npm ERR! node_modules/jest-preset-angular npm ERR! dev jest-preset-angular@“12.2.2” from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Additional context

Would you release jest-angular-preset with jest 29 supported?

Environment

System:
    OS: Linux 5.18 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
    CPU: (12) x64 Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz
  Binaries:
    Node: 16.17.0 - /usr/bin/node
    npm: 8.15.0 - /usr/bin/npm

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:16
  • Comments:18

github_iconTop GitHub Comments

29reactions
minijuscommented, Oct 14, 2022

Are there any plans to cut new release any time soon? It seems new version of Jest was merged to main branch and it passed CI just fine: https://github.com/thymikee/jest-preset-angular/pull/1804

There is a chain of changes that increases the importance of having jest-preset-angular with Jest 29 support:

  1. There is outstanding Jest and Node.js 16.10+ issue with memory consumption: https://github.com/facebook/jest/issues/11956
  2. Jest 29 added a workaround with new option workerIdleMemoryLimit
  3. Angular 15 drops support for Node.js 16.10 https://github.com/angular/angular-cli/pull/24026 putting Jest users in a limbo state.
  4. Nrwl seems to wait for jest-preset-angular release to add official support for Jest 29 to nx: https://github.com/nrwl/nx/issues/11892
15reactions
ahnpnlcommented, Nov 28, 2022

12.2.3 supports Angular 15:)

Read more comments on GitHub >

github_iconTop Results From Across the Web

jest - npm
Instant Feedback: Failed tests run first. Fast interactive mode can switch between running all tests or only test files related to changed ...
Read more >
There are mistakes during npm install - Stack Overflow
The problem is not in Node version. My colleague cannot also instal packages and get the same error. Problem is in versions of...
Read more >
Getting Started - Jest
You can run Jest directly from the CLI (if it's globally available in your PATH , e.g. by yarn global add jest or...
Read more >
ts-jest | Yarn - Package Manager
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. NPM version NPM downloads Known...
Read more >
Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found