NikValdez / VideoChatTut

119 stars 105 forks source link

End Call Error #7

Open Sodabeh-Taherpanah opened 1 month ago

Sodabeh-Taherpanah commented 1 month ago

I take this error after clicking on " End Call" button. Do anybody have a solution? process is not defined ReferenceError: process is not defined at emitReadable (http://localhost:3000/static/js/bundle.js:56893:5) at onEofChunk (http://localhost:3000/static/js/bundle.js:56873:5) at readableAddChunk (http://localhost:3000/static/js/bundle.js:56657:5) at Readable.push (http://localhost:3000/static/js/bundle.js:56646:10) at http://localhost:3000/static/js/bundle.js:60563:44

Sodabeh-Taherpanah commented 1 month ago

Actually, I solve it. this happened because simple-peer did not have finished and you tried to destroy the socket's connection. please add those lines to the index. js, at the very first line if you are using react. Be sure that you installed "process" before.

import * as process from "process";

window.global = window; window.process = process; window.Buffer = [];