Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. vnshine
    V

    vnshine

    @vnshine

    Chat Follow Unfollow
    0
    Reputation
    2
    Posts
    1079
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Continue chat with vnshine
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    vnshine Follow

    Posts made by vnshine

    RE: Error colyseus/lib/Server.js:22 when run on Real Server

    @vnshine i have resolved it
    will be keep this for someone who have need that
    just update nodejs to last version

    posted in Questions & Help •
    Error colyseus/lib/Server.js:22 when run on Real Server

    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

    posted in Questions & Help •