{"action":"opened","issue":{"url":"https://api.github.com/repos/substack/node-browserify/issues/1112","labels_url":"https://api.github.com/repos/substack/node-browserify/issues/1112/labels{/name}","comments_url":"https://api.github.com/repos/substack/node-browserify/issues/1112/comments","events_url":"https://api.github.com/repos/substack/node-browserify/issues/1112/events","html_url":"https://github.com/substack/node-browserify/issues/1112","id":56969395,"number":1112,"title":"Circular dependencies with 6to5 don't work.","user":{"login":"trusktr","id":297678,"avatar_url":"https://avatars.githubusercontent.com/u/297678?v=3","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-08T21:49:18Z","updated_at":"2015-02-08T21:49:18Z","closed_at":null,"body":"For example,\r\n\r\n```js\r\n// Foo.js\r\nimport Bar from 'Bar'\r\nexport class Foo {\r\n  constructor() {\r\n    console.log('I am Foo. Am I Bar?', this instanceof Bar)\r\n  }\r\n}\r\n```\r\n\r\n```js\r\n// Bar.js\r\nimport Foo from 'Foo'\r\nexport class Bar extends Foo {\r\n  constructor() {\r\n    super()\r\n  }\r\n}\r\n```\r\n\r\nThrows an error\r\n\r\n```\r\nUncaught TypeError: Super expression must either be null or a function, not undefined\r\n```\r\n\r\n@sebmck This happens on a line that looks like this:\r\n\r\n```\r\nvar _inherits = function (subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; };\r\n```"}}