{"action":"created","issue":{"url":"https://api.github.com/repos/gamestdio/colyseus.lua/issues/1","repository_url":"https://api.github.com/repos/gamestdio/colyseus.lua","labels_url":"https://api.github.com/repos/gamestdio/colyseus.lua/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gamestdio/colyseus.lua/issues/1/comments","events_url":"https://api.github.com/repos/gamestdio/colyseus.lua/issues/1/events","html_url":"https://github.com/gamestdio/colyseus.lua/issues/1","id":134592070,"number":1,"title":"Error when start sample server?","user":{"login":"takaaptech","id":6276251,"avatar_url":"https://avatars.githubusercontent.com/u/6276251?v=3","gravatar_id":"","url":"https://api.github.com/users/takaaptech","html_url":"https://github.com/takaaptech","followers_url":"https://api.github.com/users/takaaptech/followers","following_url":"https://api.github.com/users/takaaptech/following{/other_user}","gists_url":"https://api.github.com/users/takaaptech/gists{/gist_id}","starred_url":"https://api.github.com/users/takaaptech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takaaptech/subscriptions","organizations_url":"https://api.github.com/users/takaaptech/orgs","repos_url":"https://api.github.com/users/takaaptech/repos","events_url":"https://api.github.com/users/takaaptech/events{/privacy}","received_events_url":"https://api.github.com/users/takaaptech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-18T14:16:25Z","updated_at":"2016-02-18T21:00:48Z","closed_at":"2016-02-18T21:00:48Z","body":"When i try to start server via npm start or node index.js, it throws error:\r\n\r\ncolyseus.lua-master/server/chat_room.js:3\r\nclass ChatRoom extends Room {\r\n^^^^^\r\n\r\nSyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:404:25)\r\n    at Object.Module._extensions..js (module.js:432:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:311:12)\r\n    at Module.require (module.js:366:17)\r\n    at require (module.js:385:17)\r\n    at Object.<anonymous> (/Users/macbook/Corona/colyseus.lua-master/server/index.js:2:16)\r\n    at Module._compile (module.js:425:26)\r\n    at Object.Module._extensions..js (module.js:432:10)\r\n"},"comment":{"url":"https://api.github.com/repos/gamestdio/colyseus.lua/issues/comments/185918176","html_url":"https://github.com/gamestdio/colyseus.lua/issues/1#issuecomment-185918176","issue_url":"https://api.github.com/repos/gamestdio/colyseus.lua/issues/1","id":185918176,"user":{"login":"endel","id":130494,"avatar_url":"https://avatars.githubusercontent.com/u/130494?v=3","gravatar_id":"","url":"https://api.github.com/users/endel","html_url":"https://github.com/endel","followers_url":"https://api.github.com/users/endel/followers","following_url":"https://api.github.com/users/endel/following{/other_user}","gists_url":"https://api.github.com/users/endel/gists{/gist_id}","starred_url":"https://api.github.com/users/endel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endel/subscriptions","organizations_url":"https://api.github.com/users/endel/orgs","repos_url":"https://api.github.com/users/endel/repos","events_url":"https://api.github.com/users/endel/events{/privacy}","received_events_url":"https://api.github.com/users/endel/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T21:00:48Z","updated_at":"2016-02-18T21:00:48Z","body":"Hey @takaaptech,\r\n\r\nActually as the server uses JavaScript ES6 features we should always start node with the `harmony` flag, like this:\r\n\r\n```\r\n$ node --harmony index.js\r\n```\r\n\r\nHope this helps! Please do share your experiences about using this, I'd like to make it as easy as possible to create multiplayer games."}}