-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
"Unable to resolve module" from dependency #3874
Comments
For example, a representative sample from errors logged in terminal:
These all appear to be node core modules. Are there known issues with dependencies that require node core modules breaking the packager? |
See - #1871 |
+1 |
Hey everyone, can you all try:
And let me know if that fixes the issue? |
Checkout #4062. |
@skevy May be we should add these steps to |
@satya164 seems reasonable to me. |
Node core modules cannot be used inside React Native as it's a completely different environment. closing this. |
Had to follow steps here: facebook/react-native#3874 (comment)
+1 @skevy |
My development is stuck at this error. i have researched a lot on this but i found no perfect solution for this! Moreover , it is quite surprising to find an issue not resolved for the span of more than a year. please guys, do share if you find any solution for this. |
Any solution? I'm stuck on this. :/ |
I'm stuck at this too, hoping someone could give any advice/clue on this |
I came here after having trouble importing the a Wordpress REST API wrapper for node.js.
As @satya164 pointed out, this will probably not work for all missing modules, but in my case it was only Pay attention to the react error screen to find out what other modules are missing. |
There is a blog post in medium explaning how to use core node modules with react-native: Maybe it helps |
Why do you people close issues, if there is no clearly identified solution to the problem, and there are so many people facing the same issue ? |
In this case, I am requiring
request-promise
, but when I start the react native project, I get the error:Unable to resolve module x. If you are sure the module is there, try restarting the packager.
This error is reported for many of the required dependencies of the
request
dependency ofrequest-promise
. I have restarted the packager as well as removingnode_modules
and reinstalling. In general, what does this error stem from and in the specific, what can be done to solve it?The text was updated successfully, but these errors were encountered: