Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Incompatibility between `@flashbots/ethers-provider-bundle` (v1.x.x) and ethers (v6.x.x)

Aperta
#615 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
blockchain

Direzione di ricerca

Inizia dalle versioni delle dipendenze in package.json e dall'importazione di FlashbotsBundleProvider, quindi riproduci il malfunzionamento con le versioni segnalate di ethers, @flashbots/ethers-provider-bundle e Node.js. Ispeziona node_modules/@flashbots/ethers-provider-bundle/build/index.js e conferma che una configurazione supportata venga inizializzata senza l'errore di modulo non trovato @ethersproject/web.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I found an incompatibility issue when using @flashbots/ethers-provider-bundle version 1.x.x with ethers version 6.x.x, resulting in a module not found error.

Component: @flashbots/ethers-provider-bundle

Steps to reproduce bug:

  1. Set up a Node.js project with ethers v6.x.x and @flashbots/ethers-provider-bundle v1.x.x installed as dependencies in package.json.
  2. Write or use existing TypeScript/JavaScript code that imports and attempts to initialize FlashbotsBundleProvider from @flashbots/ethers-provider-bundle.
  3. Run the code or tests that involve this import and initialization.

Expected behavior:

The FlashbotsBundleProvider should be imported and initialized successfully without errors when used with a compatible version of ethers v6, as indicated by the Flashbots library documentation for v1.x.x.

Actual behavior:

When running the code, the following error occurs:

Cannot find module '@ethersproject/web' from 'node_modules/@flashbots/ethers-provider-bundle/build/index.js'

This error indicates that the Flashbots library is attempting to import a module (@ethersproject/web) that is part of the ethers v5 structure but is not present or has been moved/removed in ethers v6.

Version number:

  • ethers: ^6.11.1
  • @flashbots/ethers-provider-bundle: ^1.0.0 (the latest version)
  • Node.js: v20.18.1

Operating system:

Windows 11

Lingua principale
TypeScript
Stelle
246
Fork
200
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di flashbots/flashbots-docs

Tutte le issue di flashbots/flashbots-docs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.