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

why after running react-native run, say me "Unable to resolve module #26410

Closed
mohammad-khosrojerdi opened this issue Sep 12, 2019 · 4 comments
Closed
Labels
Bug Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.

Comments

@mohammad-khosrojerdi
Copy link

hi, i have a monorepo project with lerna and i have app, web and common packages in monorepo folder. my app package is react-native project and my web package is react-native-web project. i add common dependency in web and app package from lerna add command. the result of my web project is fine but when i run app project, alert me "Unable to resolve module". while i find the common folder in node_modules folder in app package root. why react-native not found my common dependency?

Screenshot from 2019-09-12 08-43-26

Screenshot from 2019-09-12 08-49-19

@react-native-bot react-native-bot added the Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. label Sep 12, 2019
@react-native-bot
Copy link
Collaborator

Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: Needs More Information labels Sep 12, 2019
@zzAlexzz
Copy link

zzAlexzz commented Oct 7, 2019

I have the same issue.
e.g. , in my mobile project, I installed flag npm(https://www.npmjs.com/package/flag), but when I ran react-native ios, the error occurred: Unable to resolve module. The error message is the same as mohammad's screen shot. Is it related to lerna's or react-native's issue?

@stale
Copy link

stale bot commented Jan 6, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 6, 2020
@stale
Copy link

stale bot commented Jan 13, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Jan 13, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Jan 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
Development

No branches or pull requests

3 participants