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

The punycode module is deprecated in NodeJS v22, impacting @nomiclabs/[email protected] #5711

Open
barakman opened this issue Sep 3, 2024 · 1 comment
Assignees

Comments

@barakman
Copy link

barakman commented Sep 3, 2024

Version of Hardhat

2.22.10

What happened?

Executing hardhat test yields the following printout:

(node:66873) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

The test-suite then continues to run normally.

Minimal reproduction steps

Install:

  • node v22.8.0
  • npm v10.8.2 or yarn v1.22.22

In package.json, add the following dev-dependencies:

  • "@nomiclabs/hardhat-truffle5": "2.0.7"
  • "@nomiclabs/hardhat-web3": "2.0.0"
  • "hardhat": "2.22.10"

Run hardhat test.

Search terms

No response

@iosh
Copy link
Contributor

iosh commented Sep 21, 2024

Hi Truffle has been archived project, you can migrate Truffle to Hardhat.This warning currently does not affect your work. The simplest way to resolve this warning is to downgrade your Node.js version, for example, to Node 20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

3 participants