simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

Vite-React-Typescript Issue - Uncaught TypeError: Stream is undefined at the time of createing SimplePeer object

Open Atanusaha143 opened this issue 3 months ago • 3 comments

Atanusaha143 avatar Mar 27 '24 09:03 Atanusaha143

Also getting this error recently simple-peer.js?t=171…965&v=ca1ffffe:4300 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'call') at _Peer.Readable (simple-peer.js?t=171…&v=ca1ffffe:4300:14) at new Duplex (simple-peer.js?t=171…&v=ca1ffffe:3569:16) at new _Peer (simple-peer.js?t=171…5&v=ca1ffffe:5309:9) at createPeer (Room.tsx:87:22) at Room.tsx:41:34 at Array.forEach (<anonymous>) at Socket2.<anonymous> (Room.tsx:40:25) at Emitter.emit (socket__io-client.js?v=ca1ffffe:356:21) at Socket2.emitEvent (socket__io-client.js?v=ca1ffffe:2600:16) at Socket2.onevent (socket__io-client.js?v=ca1ffffe:2588:12)

codewithdripzy avatar Apr 17 '24 15:04 codewithdripzy

After checking through, i was able to find a solution that worked https://stackoverflow.com/questions/76083232/caught-in-promise-typeerror-cannot-read-properties-of-undefined-reading-cal https://www.npmjs.com/package/vite-plugin-node-polyfills

codewithdripzy avatar Apr 17 '24 15:04 codewithdripzy

@codewithdripzy, Your provided link is not working

Atanusaha143 avatar Apr 19 '24 05:04 Atanusaha143