peers / peerjs-server

Server for PeerJS
https://peerjs.com
MIT License
4.26k stars 1.08k forks source link

Error: unexpected token . #410

Closed kaifkh20 closed 12 months ago

kaifkh20 commented 12 months ago

image

I am facing this error. any help is appreciated

jonasgloning commented 12 months ago

Transferred to the server repository. It appears like your node runtime does not support optional chaining. Are you running Node 13 or lower? We aim to support 14 or above.

kaifkh20 commented 12 months ago

I am running Node v12.22.9

On Sun, Jul 9, 2023, 14:26 Jonas Gloning @.***> wrote:

Transferred to the server repository. It appears like your node runtime does not support optional chaining https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining . Are you running Node 13 or lower? We aim to support 14 or above.

— Reply to this email directly, view it on GitHub https://github.com/peers/peerjs-server/issues/410#issuecomment-1627652909, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6N6G55ELJD2RY7KFMGE5JTXPJW25ANCNFSM6AAAAAA2DLWMGU . You are receiving this because you authored the thread.Message ID: @.***>

jonasgloning commented 12 months ago

Then I suggest upgrading Node or using peer version 1.0 or below.