{"action":"created","issue":{"url":"https://api.github.com/repos/goatslacker/alt/issues/390","labels_url":"https://api.github.com/repos/goatslacker/alt/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/goatslacker/alt/issues/390/comments","events_url":"https://api.github.com/repos/goatslacker/alt/issues/390/events","html_url":"https://github.com/goatslacker/alt/issues/390","id":93996331,"number":390,"title":"io.js, ES6: TypeError: Class constructors cannot be invoked without 'new'","user":{"login":"jkcom","id":1021856,"avatar_url":"https://avatars.githubusercontent.com/u/1021856?v=3","gravatar_id":"","url":"https://api.github.com/users/jkcom","html_url":"https://github.com/jkcom","followers_url":"https://api.github.com/users/jkcom/followers","following_url":"https://api.github.com/users/jkcom/following{/other_user}","gists_url":"https://api.github.com/users/jkcom/gists{/gist_id}","starred_url":"https://api.github.com/users/jkcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkcom/subscriptions","organizations_url":"https://api.github.com/users/jkcom/orgs","repos_url":"https://api.github.com/users/jkcom/repos","events_url":"https://api.github.com/users/jkcom/events{/privacy}","received_events_url":"https://api.github.com/users/jkcom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-09T09:05:32Z","updated_at":"2015-07-10T17:52:26Z","closed_at":null,"body":"When trying to run server-side using io.js (2.3.3) using es6 classes i get the following error:\r\n\r\n```\r\n/Users/josef/Develop/some/some-app/src/js/shared/stores/some-store.js:43\r\n  constructor() {\r\n             ^\r\nTypeError: Class constructors cannot be invoked without 'new'\r\n    at Store.SomeStore (/Users/josef/Develop/some/some-app/src/js/shared/stores/some-store.js:43:14)\r\n    at new Store (/Users/josef/Develop/some/some-app/node_modules/alt/lib/store/index.js:139:73)\r\n    at Object.createStoreFromClass (/Users/josef/Develop/some/some-app/node_modules/alt/lib/store/index.js:160:15)\r\n    at Alt.createStore (/Users/josef/Develop/some/some-app/node_modules/alt/lib/index.js:116:109)\r\n   ...\r\n```\r\n\r\nFrom a store in this format:\r\n\r\n```\r\n'use strict';\r\nvar alt = require('../alt'),\r\n    someActions = require('../actions/some-actions'):\r\n\r\nclass SomeStore {\r\n  constructor() {\r\n\r\n    this.state = {};\r\n\r\n    this.bindListeners({\r\n      onSomeCreated: someActions.someCreated\r\n    });\r\n  }\r\n\r\n  onSomeCreated(some) {\r\n  }\r\n}\r\n\r\nmodule.exports = alt.createStore(SomeStore, 'SomeStore');\r\n```\r\n\r\nIs there some configuration that should be set for alt to know how initialisation should happen? Or could I be missing some other obvious thing?"},"comment":{"url":"https://api.github.com/repos/goatslacker/alt/issues/comments/120477599","html_url":"https://github.com/goatslacker/alt/issues/390#issuecomment-120477599","issue_url":"https://api.github.com/repos/goatslacker/alt/issues/390","id":120477599,"user":{"login":"goatslacker","id":10632,"avatar_url":"https://avatars.githubusercontent.com/u/10632?v=3","gravatar_id":"","url":"https://api.github.com/users/goatslacker","html_url":"https://github.com/goatslacker","followers_url":"https://api.github.com/users/goatslacker/followers","following_url":"https://api.github.com/users/goatslacker/following{/other_user}","gists_url":"https://api.github.com/users/goatslacker/gists{/gist_id}","starred_url":"https://api.github.com/users/goatslacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatslacker/subscriptions","organizations_url":"https://api.github.com/users/goatslacker/orgs","repos_url":"https://api.github.com/users/goatslacker/repos","events_url":"https://api.github.com/users/goatslacker/events{/privacy}","received_events_url":"https://api.github.com/users/goatslacker/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T17:52:26Z","updated_at":"2015-07-10T17:52:26Z","body":"Alt is transpiled by babel into es5 code. You're most likely running that on the server. "}}