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

issue: latest version not compatible with node 16 #11281

Closed
1 task done
Ahmed-Elswerky opened this issue Dec 11, 2023 · 10 comments
Closed
1 task done

issue: latest version not compatible with node 16 #11281

Ahmed-Elswerky opened this issue Dec 11, 2023 · 10 comments
Labels
improve documentation documentation update required

Comments

@Ahmed-Elswerky
Copy link

Version Number

7.49.0

Codesandbox/Expo snack

not able to build a sandbox with node 16 currently

Steps to reproduce

  1. install latest version in a react app
  2. use node 16.20
  3. try to build
  4. See error ##[error]error react-hook-form@7.49.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2"

Expected behaviour

error doesn't show

What browsers are you seeing the problem on?

No response

Relevant log output

##[error]error react-hook-form@7.49.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2"

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bluebill1049 bluebill1049 added the improve documentation documentation update required label Dec 11, 2023
@luismarketgoo

This comment was marked as off-topic.

@mrxsal
Copy link

mrxsal commented Dec 11, 2023

What's the latest version of react-hook-form which is compatible with node 16.20?

@AXG25
Copy link

AXG25 commented Dec 11, 2023

temporary solution (what worked for me): in your package.json you can fix version 7.48.n momentarily while they upload the patch that fixes the incompatibility

@Linuhusainnk
Copy link

"react-hook-form": "^7.37.0"

still have issues while deploying

@jacobsfletch
Copy link

Same here. I pinned to version 7.45.4 and it seems to be working again:

"react-hook-form": "7.45.4",

@nathanhannig

This comment was marked as off-topic.

@F3n67u
Copy link

F3n67u commented Dec 22, 2023

Can we remove engine field before publishing? This package is not node package. It should work whatever node version uses.

@Moshyfawn
Copy link
Member

Moshyfawn commented Jan 3, 2024

This is a valid concern. I've successfully run the test suite on Node versions as low as 12. I would honestly consider dropping the engine version back to 12.

As for removing the engine field: we use at least a couple of Node 10 features, including the spread operator, which on the one hand, I doubt anyone is running a project lower than even 12, but on the other hand, strictly specifying the lowest working version is always good.

@fulutas
Copy link

fulutas commented Jan 22, 2024

In my case this is what helped:

yarn install --ignore-engines

@mayankav

This comment was marked as spam.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
improve documentation documentation update required
Projects
None yet
Development

No branches or pull requests