-
Notifications
You must be signed in to change notification settings - Fork 4
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
React native: unable to resolve module 'util' #3
Comments
|
Also in RN we'd want to add '$$typeof',
'prototype', the the ignored properties, console.log and HMR seems to be accessing those. |
Hi, thanks for this feedback. About the In other words, update
Then |
I've added a PR #4 that implements and alternative solution it will not require('util') on react native. I guess adding I'll look into it if you prefer that to the conditional require in the |
In fact, the PR will not work with nodejs, "navigator" is not defined in this context (at least v6.7.0). That's why I would like to explore the conditional depency. If adding
If I understand stackoverflow response, |
If:
doesn't work, I will try something else. |
Yes but my pr, has other not only conditional include of util it also adds rn specific inspect properties to ignore. We can definetedly do |
Yes, I saw your PR, thanks for the proposal, I understand the issue. Before merging, i would like to explore the possibilities. |
@zertyuio sure i'll test the util: false later today or tomorrow |
I've tested: "react-native": {
"util": "~0.12.2"
} no util package was installed and same error on require I've tested: "react-native": {
"util": false
} no util package was installed and So the second one seems to be an option too. |
The text was updated successfully, but these errors were encountered: