Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#615 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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:

  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

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của flashbots/flashbots-docs

Tất cả issue của flashbots/flashbots-docs

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.