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

Incorrect node.js version warning #6013

Open
antico5 opened this issue Dec 3, 2024 · 1 comment
Open

Incorrect node.js version warning #6013

antico5 opened this issue Dec 3, 2024 · 1 comment
Labels
type:bug Something isn't working v-next A Hardhat v3 development task
Milestone

Comments

@antico5
Copy link
Contributor

antico5 commented Dec 3, 2024

Version of Hardhat

3.0.0-next.16

What happened?

Running hardhat3 with node 23.2.0 got me the warning:

WARNING: You are using Node.js 23.2.0 which is not supported by Hardhat.
Please upgrade to 22.10.0 or a later version.

Minimal reproduction steps

Running hardhat3 with node 23.2.0

Search terms

No response

@antico5 antico5 added type:bug Something isn't working v-next A Hardhat v3 development task labels Dec 3, 2024
@fvictorio fvictorio added this to Hardhat Dec 3, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Hardhat Dec 3, 2024
@SebastienGllmt
Copy link

SebastienGllmt commented Dec 5, 2024

Are you running nodejs, or another runtime? This error happens when you're using a runtime like Deno that doesn't support the module register nodejs API

In that case, the misleading error message you see comes from tsx (used by hardhat build tools internally) so unfortunately getting a better error message requires a change in tsx

If you think this case applies to you, can track this issue here: #2888 (comment)

@kanej kanej moved this from Backlog to To-do in Hardhat Dec 5, 2024
@kanej kanej added this to the Public Alpha milestone Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working v-next A Hardhat v3 development task
Projects
Status: To-do
Development

No branches or pull requests

4 participants