m-byte918 / MultiOgarII

A continued version of the original MultiOgar, an open source Ogar server implementation written with Node.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError: Unexpected token . (outdated Node.js)

biomseed opened this issue · comments

When I run the thing it says this:
if (this.spectateTarget?.isRemoved) this.spectateTarget = null;
^

SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:721:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (my downloads\MultiOgarII-master\MultiOgarII-master\src\Server.js:13:16)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)

What version of node are you using? Have you tried making sure it's up to date?

What version of node are you using? Have you tried making sure it's up to date?

let me check

v10.16.0

Yeah I'm on v15.3.0 and it's working fine for me. Try updating node.

thanks it works

but also agario might have removed the way to connect to servers with ip adresses

Yeah, currently this server doesn't work with the official client.