tradle / rn-nodeify

hack to allow react-native projects to use node core modules, and npm modules that use them
MIT License
615 stars 112 forks source link

null is not an object (evaluating '/[0-9]\.[0-9]+/.exec(process.versions.v8)[0]') #80

Closed bobangajicsm closed 5 years ago

bobangajicsm commented 5 years ago

I'm getting following error

Screen Shot 2019-06-06 at 4 06 15 PM
mvayngrib commented 5 years ago

which module has that line with process.versions.v8?

bobangajicsm commented 5 years ago

Does error on simulator tells you anything? It throws from loadModuleImplementation

mvayngrib commented 5 years ago

no, that's just the module loader code. Search your codebase for that regex

bobangajicsm commented 5 years ago

Ok I have checked and node-capnp has that line https://github.com/capnproto/node-capnp

mvayngrib commented 5 years ago

you can't use node-capnp in react native (without additional custom work), because it has a native C++ part to it

bobangajicsm commented 5 years ago

Yeah makes sense. Thank you for fast response