Incompatibility between `@flashbots/ethers-provider-bundle` (v1.x.x) and ethers (v6.x.x)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- node.js, typescript
- Domain
- blockchain
Research direction
Start with the package.json dependency versions and the import of FlashbotsBundleProvider, then reproduce the failure using the reported ethers, @flashbots/ethers-provider-bundle, and Node.js versions. Inspect node_modules/@flashbots/ethers-provider-bundle/build/index.js and confirm that a supported setup initializes without the @ethersproject/web module-not-found error.
Written by the indexing model from the issue text.
Description
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:
- Set up a Node.js project with
ethersv6.x.x and@flashbots/ethers-provider-bundlev1.x.x installed as dependencies inpackage.json. - Write or use existing TypeScript/JavaScript code that imports and attempts to initialize
FlashbotsBundleProviderfrom@flashbots/ethers-provider-bundle. - 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
- Dominant language
- TypeScript
- Stars
- 245
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flashbots/flashbots-docs
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/flashbots-docs#633 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
flashbots/flashbots-docs#630 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
flashbots/flashbots-docs#596 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/flashbots-docs#581 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flashbots/flashbots-docs#568 ·
All issues in flashbots/flashbots-docs
Similar issues
-
module-request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
appandflow/stim#1604 · 1 comment ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 92/100
lingdojo/kana-dojo#31060 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
paperclipai/paperclip#14173 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day