Playground Metro fails to start: exclusionList is not a function

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

@CedricGuillemet đang làm issue này rồi.

Từ ngày 2/12/2026.

Đá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
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, react-native
Lĩnh vực
build-system

Hướng nghiên cứu

Start in Apps/Playground's Metro configuration and trace how it loads @rnx-kit/metro-config 2.1.0 with metro-config 0.83.7. Reproduce with react-native start and inspect the exclusionList export and the reported workaround using @react-native/metro-config. Done when the Playground Metro server starts without the TypeError and its symlinked imports resolve to the app's dependencies.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment: @babylonjs/react-native 2.0.7 (Babylon Native f4d9efb), React Native 0.81.6 (legacy architecture), Hermes, Xcode 27.1, iOS 27.0 Simulator (iPhone 17), macOS 27.0.1.

Apps/Playground locks @rnx-kit/metro-config 2.1.0 with metro-config 0.83.7. In 0.83.7,
src/defaults/exclusionList is an ES-module default export (exports.default). rnx-kit requires it and calls the
module object, so react-native start exits with TypeError: exclusionList is not a function.

Workaround: use @react-native/metro-config directly, and resolve bare imports that originate from the symlinked
module against the app's node_modules (keeps a single copy of react / react-native / @babylonjs/core).

Ngôn ngữ chính
C++
Star
437
Fork
72
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

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 BabylonJS/BabylonReactNative

Tất cả issue của BabylonJS/BabylonReactNative

Issue tương tự

Thêm issue về C++

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.