m-byte918 / MultiOgarII

A continued version of the original MultiOgar, an open source Ogar server implementation written with Node.js.
Apache License 2.0
126 stars 131 forks source link

SyntaxError: Unexpected token . (outdated Node.js) #1556

Closed biomseed closed 3 years ago

biomseed commented 3 years ago

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)

Tombez commented 3 years ago

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

biomseed commented 3 years ago

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

let me check

biomseed commented 3 years ago

v10.16.0

Tombez commented 3 years ago

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

biomseed commented 3 years ago

k

biomseed commented 3 years ago

thanks it works

biomseed commented 3 years ago

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

Tombez commented 3 years ago

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