Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Hardhat.config.js: Cannot find module '@ethersproject/experimental/nonce-manager'

I'm having trouble including the NonceManager class in my hardhat config:

I can't use import statements in the file it seems. So I've tried

const NonceManager = require("@ethersproject/experimental/nonce-manager");

and

const { NonceManager } = require("@ethersproject/experimental/nonce-manager");

But I get the error:

Error: Cannot find module '@ethersproject/experimental/nonce-manager'

My devDependencies in package.json include:

"@ethersproject/experimental": "^5.6.0", and "ethers": "^5.6.0",

Not sure what I'm doing wrong here. For context, here is the file and its exports: https://github.com/ethers-io/ethers.js/blob/master/packages/experimental/lib/nonce-manager.js

Thanks!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Have you made sure to npm install?

When you clone an existing project, the node_modules folder is often in the .gitignore to save space and download time. This means that you should cd to your project folder and run npm install, which will download any missing packages.

EDIT: It appears you're just using the wrong import/require. Here is the correct way to import it:

// Node
const { NonceManager } = require("@ethersproject/experimental");

// ESM/TypeScript
import { NonceManager } from "@ethersproject/experimental";

See the bottom of https://docs.ethers.io/v5/api/experimental/

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!