Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/cli start #47450

Closed
wants to merge 1 commit into from
Closed

fix/cli start #47450

wants to merge 1 commit into from

Conversation

blakef
Copy link
Contributor

@blakef blakef commented Nov 6, 2024

When decoupling the community-cli-plugin from the @react-native-community/cli-server-api (#45311), a middleware stub was created to allow a runtime stub to be used in this case. This middleware should be used so as not to break when the optional cli-server-api dependency isn't present.

Changelog:

[General][Fix] - Fix npm react-native start when cli-server-api isn't installed

Test Plan

Forced a runtime exception simulating the package not being dependent and was able to build rn-tester.

CleanShot 2024-11-06 at 10 49 58@2x

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Nov 6, 2024
@react-native-bot
Copy link
Collaborator

react-native-bot commented Nov 6, 2024

Fails
🚫

📋 Verify Changelog Format - See Changelog format

Warnings
⚠️ 📋 Missing Summary - Can you add a Summary? To do so, add a "## Summary" section to your PR description. This is a good place to explain the motivation for making this change.

Generated by 🚫 dangerJS against 3ab6be7

When decoupling the community-cli-plugin from the
@react-native-community/cli-server-api (#45311), a middleware stub was
created to allow a runtime stub to be used in this case. This middleware
should be used so as not to break when the optional cli-server-api
dependency isn't present.

Changelog: [General][Fix] - Fix npm react-native start when
cli-server-api isn't installed

Testing: Forced a runtime exception simulating the package not being
dependent and was able to build rn-tester.
@facebook-github-bot
Copy link
Contributor

@blakef has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@blakef merged this pull request in e0be2ef.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 6, 2024
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @blakef in e0be2ef

When will my fix make it into a release? | How to file a pick request?

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. Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants