Skip to content

Propagate Bundler transformer initialization errors - #1854

Open
Boulea7 wants to merge 1 commit into
react:mainfrom
Boulea7:fix/bundler-transformer-init-error-1808
Open

Propagate Bundler transformer initialization errors#1854
Boulea7 wants to merge 1 commit into
react:mainfrom
Boulea7:fix/bundler-transformer-init-error-1808

Conversation

@Boulea7

@Boulea7 Boulea7 commented Aug 11, 2026

Copy link
Copy Markdown

Summary

Fixes #1808.

Preserve and propagate the original Transformer construction error after reporting transformer_load_failed. Attach an immediate observer to the initialization promise so a caller can await the same rejected promise later without an unhandled rejection.

Changelog: [Fix] Propagate Transformer initialization errors from Bundler

Test plan

  • RED: yarn jest packages/metro/src/__tests__/Bundler-test.js --runInBand failed on 236ea72f1: ready() did not reject and transformFile() surfaced the follow-on undefined-transformer error.
  • GREEN: yarn jest packages/metro/src/__tests__/Bundler-test.js --runInBand (3 tests passed).
  • yarn jest --runInBand (141 suites, 2533 tests passed).
  • yarn typecheck
  • yarn lint
  • yarn build

@meta-cla

meta-cla Bot commented Aug 11, 2026

Copy link
Copy Markdown

Hi @Boulea7!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla

meta-cla Bot commented Aug 11, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 11, 2026
@Boulea7
Boulea7 marked this pull request as ready for review August 11, 2026 14:43
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

1 participant