Playground Metro fails to start: exclusionList is not a function

Open
#775 0 comments 0 reactions 0 assignees View on GitHub

@CedricGuillemet is already working on this.

Since Dec 2, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, react-native
Domain
build-system

Research direction

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.

Written by the indexing model from the issue text.

Description

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).

Dominant language
C++
Stars
437
Forks
72
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BabylonJS/BabylonReactNative

All issues in BabylonJS/BabylonReactNative

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.