react / react/metro

Async import (lazy bundling) fails to resolve in a monorepo with React Native version 0.73-0.76 (Android only)

Open
#1,262 7 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.6k
Forks
696
Avg merge
8m
Merged PRs (30d)
7

Description

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Dynamic import fails to resolve in a monorepo with React Native version 0.74.0

If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.
I have a min-size demo here https://github.com/Bob-FE/bare-rn-0740-monorepo

What is the expected behavior?
can resolve module with dynamic import

Contributor guide

Open the contributing guide

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.

Research direction

Start with the min-size reproduction at https://github.com/Bob-FE/bare-rn-0740-monorepo and follow its installation and test instructions. Reproduce the Android-only failure with React Native 0.74.0, then compare the behavior across the affected React Native 0.73–0.76 versions. Done means the monorepo resolves the dynamically imported module through Metro's async import handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.