Skip to content
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

Could not create stream object. Getting Cannot read properties of undefined error. #130

Open
JarunMadhesh opened this issue Jul 6, 2024 · 0 comments

Comments

@JarunMadhesh
Copy link

I want to send a stream of data from express server to react app. While setting up the client side code, I'm facing this error if I try to set up createStream object.

import ss from 'socket.io-stream'
.
.
const stream = ss.createStream()
    "socket.io": "^4.7.5",
    "socket.io-client": "^4.7.5",
    "socket.io-stream": "^0.9.1",

``Cannot read properties of undefined (reading 'call')
TypeError: Cannot read properties of undefined (reading 'call')
at new IOStream (http://localhost:3000/static/js/bundle.js:40340:19)
at exports.createStream (http://localhost:3000/static/js/bundle.js:40299:10)
at http://localhost:3000/static/js/bundle.js:158:76
at commitHookEffectListMount (http://localhost:3000/static/js/bundle.js:29541:30)
at commitPassiveMountOnFiber (http://localhost:3000/static/js/bundle.js:31034:17)
at commitPassiveMountEffects_complete (http://localhost:3000/static/js/bundle.js:31006:13)
at commitPassiveMountEffects_begin (http://localhost:3000/static/js/bundle.js:30996:11)
at commitPassiveMountEffects (http://localhost:3000/static/js/bundle.js:30986:7)
at flushPassiveEffectsImpl (http://localhost:3000/static/js/bundle.js:32869:7)
at flushPassiveEffects (http://localhost:3000/static/js/bundle.js:32822:18)```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant