Incompatibility between `@flashbots/ethers-provider-bundle` (v1.x.x) and ethers (v6.x.x)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- node.js, typescript
- Lĩnh vực
- blockchain
Hướng nghiên cứu
Bắt đầu với các phiên bản dependency trong package.json và import FlashbotsBundleProvider, sau đó tái hiện lỗi bằng các phiên bản ethers, @flashbots/ethers-provider-bundle và Node.js đã được báo cáo. Kiểm tra node_modules/@flashbots/ethers-provider-bundle/build/index.js và xác nhận rằng một thiết lập được hỗ trợ khởi tạo mà không gặp lỗi không tìm thấy module @ethersproject/web.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 245
- Fork
- 198
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flashbots/flashbots-docs
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
flashbots/flashbots-docs#633 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
flashbots/flashbots-docs#630 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
flashbots/flashbots-docs#596 · 1 bình luận ·
-
send_bundle but different blocks Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
flashbots/flashbots-docs#581 · 1 bình luận ·
-
CORS NOT ACCEPTING LOCALHOST Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
flashbots/flashbots-docs#568 ·
Tất cả issue của flashbots/flashbots-docs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mksglu/context-mode#1200 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anthropics/claude-code#96687 ·
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
AOSSIE-Org/DebateAI#582 · 2 bình luận ·