{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2854","labels_url":"https://api.github.com/repos/babel/babel/issues/2854/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2854/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2854/events","html_url":"https://github.com/babel/babel/issues/2854","id":115379897,"number":2854,"title":" 'this' is not allowed before super()","user":{"login":"321ckatz123","id":5422637,"avatar_url":"https://avatars.githubusercontent.com/u/5422637?v=3","gravatar_id":"","url":"https://api.github.com/users/321ckatz123","html_url":"https://github.com/321ckatz123","followers_url":"https://api.github.com/users/321ckatz123/followers","following_url":"https://api.github.com/users/321ckatz123/following{/other_user}","gists_url":"https://api.github.com/users/321ckatz123/gists{/gist_id}","starred_url":"https://api.github.com/users/321ckatz123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/321ckatz123/subscriptions","organizations_url":"https://api.github.com/users/321ckatz123/orgs","repos_url":"https://api.github.com/users/321ckatz123/repos","events_url":"https://api.github.com/users/321ckatz123/events{/privacy}","received_events_url":"https://api.github.com/users/321ckatz123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T21:35:50Z","updated_at":"2015-11-05T21:50:27Z","closed_at":null,"body":"I just upgraded to the 6.1.2 version of Babel and I believe I am getting an error incorrectly. This worked with 5.8.29 (without a .babelrc and plugins, however).\r\n\r\n**SyntaxError:** .../Book.jsx: 'this' is not allowed before super() (This is an error on an internal node. Probably an internal error):\r\n\r\n**.babelrc file**\r\n```\r\n{\r\n  \"presets\": [\"es2015\", \"react\"]\r\n}\r\n```\r\n\r\n**Book.jsx**\r\n```\r\nimport React, {PropTypes} from 'react';\r\n\r\nexport default class Book extends React.Component {\r\n  constructor(props) {\r\n    super(props);\r\n    this.state = {read: props.read};\r\n  }\r\n\r\n  handleChange() {\r\n    this.setState({\r\n      read: !this.state.read\r\n    });\r\n\r\n    this.props.onReadBook(this.state.read);\r\n  }\r\n\r\n  render() {\r\n    return (\r\n        <tr>\r\n          <td>{this.props.title}</td>\r\n          <td><input type='checkbox' checked={this.state.read} onChange={() => this.handleChange()}/></td>\r\n        </tr>\r\n    );\r\n  }\r\n}\r\nBook.propTypes = {\r\n  title: PropTypes.string.isRequired,\r\n  read: PropTypes.bool.isRequired,\r\n  onReadBook: PropTypes.func.isRequired\r\n};\r\n```\r\n\r\n**Relevant package.json**\r\n```\r\n\"dependencies\": {\r\n    \"babel-core\": \"6.1.2\",\r\n    \"babel-preset-react\": \"6.1.2\",\r\n    \"babel-preset-es2015\": \"6.1.2\",\r\n    ...\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/154203962","html_url":"https://github.com/babel/babel/issues/2854#issuecomment-154203962","issue_url":"https://api.github.com/repos/babel/babel/issues/2854","id":154203962,"user":{"login":"hzoo","id":588473,"avatar_url":"https://avatars.githubusercontent.com/u/588473?v=3","gravatar_id":"","url":"https://api.github.com/users/hzoo","html_url":"https://github.com/hzoo","followers_url":"https://api.github.com/users/hzoo/followers","following_url":"https://api.github.com/users/hzoo/following{/other_user}","gists_url":"https://api.github.com/users/hzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzoo/subscriptions","organizations_url":"https://api.github.com/users/hzoo/orgs","repos_url":"https://api.github.com/users/hzoo/repos","events_url":"https://api.github.com/users/hzoo/events{/privacy}","received_events_url":"https://api.github.com/users/hzoo/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T21:50:27Z","updated_at":"2015-11-05T21:50:27Z","body":"Looks similar to https://github.com/babel/babel/issues/2774 and others?"}}