Skip to content

Conversation

@acoates-ms
Copy link
Contributor

Summary:

Metro changed how to hook into the resolver with this commit:
facebook/metro@d81d887

The reactNativePlatformResolver is still using the old format, which causes bundle commands to fail if the project has any out of tree platforms (Ex: react-native-windows-macOS)

Test Plan:

The following bundle command fails currently. But works after making this change locally.
npx --yes react-native@0.0.0-20220415-2010-3c1a81446 init testcli --template react-native@0.0.0-20220415-2010-3c1a81446
cd testcli
npx --yes react-native-windows-init@latest --verbose --version 0.0.0-canary.495 --overwrite --language cs --projectType app --namespace MyCompany.MyApplication.MyComponent
npx react-native bundle --entry-file index.js --platform windows --bundle-output test.bundle

jonthysell added a commit to jonthysell/react-native-windows that referenced this pull request May 10, 2022
This PR disables bundling when running the CLI tests temporarily, until
react-native-community/cli#1605 gets resolved
and published.

Closes microsoft#9939

Switch to disabling bundling during pipeline
jonthysell added a commit to jonthysell/react-native-windows that referenced this pull request May 10, 2022
This PR disables bundling when running the CLI tests temporarily, until
react-native-community/cli#1605 gets resolved
and published.

Closes microsoft#9939

Switch to disabling bundling during pipeline
jonthysell added a commit to jonthysell/react-native-windows that referenced this pull request May 10, 2022
This PR disables bundling when running the CLI tests temporarily, until
react-native-community/cli#1605 gets resolved
and published.

Closes microsoft#9939

Switch to disabling bundling during pipeline
asklar pushed a commit to microsoft/react-native-windows that referenced this pull request May 10, 2022
This PR disables bundling when running the CLI tests temporarily, until
react-native-community/cli#1605 gets resolved
and published.

Closes #9939

Switch to disabling bundling during pipeline
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that!

@thymikee
Copy link
Member

Looks like it doesn't cause regressions with ios and android platforms on 0.69, going to release it soon

@thymikee thymikee merged commit 27605b7 into react-native-community:master May 10, 2022
@thymikee
Copy link
Member

Released in:

  • @react-native-community/cli-plugin-metro@8.0.0-alpha.6
  • @react-native-community/cli@8.0.0-alpha.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants