Comments (4)
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.
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.
I have same problem, how to fix it? thanks.
from rn-nodeify.
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)
- Error: readFileSync function from `fs` is undefined HOT 1
- moralis HOT 1
- main.js HOT 1
- iOS Build is failing (duplicate symbols for architecture x86_64) HOT 6
- very awesome and useful project HOT 2
- shim.js issue on IOS HOT 2
- Security issues
- Request: Add ffjavascript support
- what is shim ?
- error Couldn't find the binary git.
- failed to parse package.json on windows HOT 3
- Nodify
- Cannot read property 'call' of undefined when calling createHmac function from crypto
- Tradle HOT 1
- shim for react-native-tls HOT 1
- modules broken after single package install HOT 4
- prevent hacking specific module
- Async_hooks HOT 2
- ypto
- Cannot build IOS bundle in production mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rn-nodeify.