You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of this package are you using? "simple-peer": "^9.11.1",
What operating system, Node.js, and npm version?
Node.js version v20.9.0
npm version v10.1.0 What happened?
i used the library as the docs say but i am getting the below error, any suggestion would be appreciated thanks in advance!
simple-peer.js?v=59db85ac:4087 Uncaught
TypeError: Cannot read properties of undefined (reading 'call')
at _Peer.Readable (simple-peer.js?v=59db85ac:4087:14)
at new Duplex (simple-peer.js?v=59db85ac:3405:16)
at new _Peer (simple-peer.js?v=59db85ac:5021:9)
at callUser (SocketContext.jsx:61:28)
at onClick (Options.jsx:86:102)
at HTMLUnknownElement.callCallback2 (chunk-6VWAHX6D.js?v=59db85ac:3674:22)
at Object.invokeGuardedCallbackDev (chunk-6VWAHX6D.js?v=59db85ac:3699:24)
at invokeGuardedCallback (chunk-6VWAHX6D.js?v=59db85ac:3733:39)
at invokeGuardedCallbackAndCatchFirstError (chunk-6VWAHX6D.js?v=59db85ac:3736:33)
at executeDispatch (chunk-6VWAHX6D.js?v=59db85ac:7014:11)
and here is my implementation for reference
SocketContext.jsx
@RahulKumar9988 currently the library is not maintained, the last published date is 3 years ago and it has dependencies including development dependencies which are outdated. I guess that is what is causing the error and I do not remember which package is causing that error.
since no one has answered my question, I tried using another libraries and peerjs(last published 8 month ago) has worked well for me and in case if you need to check it out, here is the repo.
feel free to star⭐, clone 👥 or fork 🍴 the repo.
and if there is anything you do not understand or got error ask me i will help you as much as i can asap.
What version of this package are you using? "simple-peer": "^9.11.1",
What operating system, Node.js, and npm version?
Node.js version v20.9.0
npm version v10.1.0
What happened?
i used the library as the docs say but i am getting the below error, any suggestion would be appreciated thanks in advance!
and here is my implementation for reference
SocketContext.jsx
The text was updated successfully, but these errors were encountered: