Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

181
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda