Skip to content

@types/testing-library__jest-dom is not available for node12 #473

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

Closed
AWITW opened this issue Aug 31, 2022 · 3 comments
Closed

@types/testing-library__jest-dom is not available for node12 #473

AWITW opened this issue Aug 31, 2022 · 3 comments

Comments

@AWITW
Copy link

AWITW commented Aug 31, 2022

  • @testing-library/jest-dom version:
  • node : 12
  • yarn version: 1.22.17

Problem description:

error [email protected]: The engine "node" is incompatible with this module. Expected version "^14.15.0 || ^16.10.0 || >=18.0.0". Got "12.22.10"

@nickserv
Copy link
Member

nickserv commented Aug 31, 2022

I don't think we can control the compatibility of @types/testing-library__jest-dom because it's maintained by DefinitelyTyped. Node 12 is still unsupported though, so I'd recommend you upgrade to Node 14 or newer. If you can't, you can disable engine checks, but you may run into more issues.

@nickserv nickserv closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2022
@jinlong
Copy link

jinlong commented Aug 31, 2022

@types/testing-library__jest-dom contains { @types/jest: "*" } dependency,due to jest release v29.0 recently,our app may auto install latest version, jest@29 is not available for node12.

Could you change the ‘*’ wildcard version to particular version?

@nickserv
Copy link
Member

nickserv commented Aug 31, 2022

As I said, we don't control that. You can open an issue with DefinitelyTyped if you want, though I honestly doubt it will be solved because Node 12 is no longer supported. If you can't upgrade yet, you can disable engine checks or use a lockfile, at your own risk.

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

3 participants