GithubHelp home page GithubHelp logo

Comments (4)

ArcanoxDragon avatar ArcanoxDragon commented on August 26, 2024

Can confirm, updating stream-browserify and readable-stream fixed this issue for me. For search indexing purposes, the issue is the error Object prototype may only be an Object or null. occurring whenever a module tries to load any dependency using streams, including (in my case) zlib (which is browserify-zlib in react-native).

Something to note when performing this fix:

If you use yarn and run yarn upgrade to install the new versions of stream-browserify and readable-stream, it will overwrite any hacks that rn-nodeify performed. Run rn-nodeify --hack to fix them, but note that running rn-nodeify --install will most likely overwrite the versions of stream-browserify and readable-stream in package.json with the old versions again.

from rn-nodeify.

jsdario avatar jsdario commented on August 26, 2024

I am experiencing this issue, but only in release builds, not development mode. Also did not seem to happen without react-native-tcp. Nevertheless I still use react-native-udp.

This is the error I am getting_

04-04 10:21:19.482 29137 29206 E ReactNativeJS: Object prototype may only be an Object or null.
04-04 10:21:19.500 29137 29206 E ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)

It happens even if I run yarn upgrade and then rn-nodeify --hack. After the hack, the packager complains about not finding querystring package.

Any valuable insights?

from rn-nodeify.

scriptfans avatar scriptfans commented on August 26, 2024

I have same problem, how to fix it? thanks.

from rn-nodeify.

mvayngrib avatar mvayngrib commented on August 26, 2024

yarn compat has been added recently by @jd20, and rn-nodeify will no longer overwrite dependencies unless the --overwrite flag is set. Is anyone still experiencing this issue?

from rn-nodeify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.