@vnshine i have resolved it
will be keep this for someone who have need that
just update nodejs to last version
0
Reputation
2
Posts
904
Profile views
0
Followers
0
Following
Posts made by vnshine
RE: Error colyseus/lib/Server.js:22 when run on Real Server
posted in Questions & Help •
Error colyseus/lib/Server.js:22 when run on Real Server
posted in Questions & Help •
I have build tic tac toe example in my local server it run normally but when i push it on real server i get error like this:
server/node_modules/colyseus/lib/Server.js:22
constructor(options = {}) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/werewolf/server/node_modules/colyseus/lib/index.js:8:16)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
My server using: Ubuntu Linux