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

Add react-native dependency to resolve it correctly. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leekuo
Copy link
Member

@leekuo leekuo commented Apr 6, 2022

Add react-native package to dependencies to get the metro bundler to resolve the react-native CLI tool correctly: https://github.com/facebook/metro/blob/main/packages/metro-resolver/src/resolve.js#L137

This is also already included in the default non-base composites automatically:
https://github.com/electrode-io/electrode-native/blob/master/ern-composite-gen/src/GeneratedComposite.ts#L77

Failure to include the dependency will result in ambiguity in finding the right react-native CLI tool to run.

Copy link

@dudeinthemirror dudeinthemirror left a comment

Choose a reason for hiding this comment

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

LGTM 🚢

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