Closed alexwilson closed 6 years ago
interesting, good catch! Right now rn-nodeify edits all package.json files. Ideally, it should ignore at least all of react-native's own deps (and their deps), and possibly have an additional configurable whitelist. You could probably go through react-native's package.json (and all its deps) first to build the default whitelist.
Agreed, I was actually about to open another issue addressing this. How would you suggest such a list be implemented (and/or should we be discussing this in a dedicated issue?) - There are some packages, like jwt-simple
where I want to use react dependencies (i.e. crypto).
@antoligy I haven't experienced any errors despite rn-nodeify's editing of the invariant and warning modules' package.json's. Do you have an example of a reproducible error? Thanks!
closing due to inactivity, please reopen if the issue persists
Running
rn-nodeify --install
replaces the module definitions used by Facebook's invariant and warning modules, which breaks their resolution.e.g.
I've worked around this here https://github.com/antoligy/react-universal-native-starter/pull/3 by adding an alias to webpack. Any ideas on any better ways of fixing this? Happy to contrib.