{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/4593","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/4593/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/4593/comments","events_url":"https://api.github.com/repos/babel/babel/issues/4593/events","html_url":"https://github.com/babel/babel/issues/4593","id":179909567,"number":4593,"title":"Cannot read property 'wrapAwait' of undefined","user":{"login":"dariusriggins","id":770432,"avatar_url":"https://avatars.githubusercontent.com/u/770432?v=3","gravatar_id":"","url":"https://api.github.com/users/dariusriggins","html_url":"https://github.com/dariusriggins","followers_url":"https://api.github.com/users/dariusriggins/followers","following_url":"https://api.github.com/users/dariusriggins/following{/other_user}","gists_url":"https://api.github.com/users/dariusriggins/gists{/gist_id}","starred_url":"https://api.github.com/users/dariusriggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariusriggins/subscriptions","organizations_url":"https://api.github.com/users/dariusriggins/orgs","repos_url":"https://api.github.com/users/dariusriggins/repos","events_url":"https://api.github.com/users/dariusriggins/events{/privacy}","received_events_url":"https://api.github.com/users/dariusriggins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-28T22:41:04Z","updated_at":"2016-09-29T08:22:53Z","closed_at":"2016-09-28T23:19:48Z","body":"```js\r\nclass MyFunClass {\r\n    async doWork(){\r\n        const response = await this.client.get('stuff');\r\n    }\r\n}\r\n```\r\n\r\n```js\r\n{\r\n    \"presets\": [\"es2015-node5\", \"react\"],\r\n    \"plugins\": [\"transform-async-to-generator\"]\r\n}\r\n```\r\n\r\n### Expected Behavior\r\nWas expecting to compile without errors, instead got the following error running via `babel src -d lib`.\r\n\r\n```\r\nTypeError: src/client/actions/InstallActionHelper.js: Cannot read property 'wrapAwait' of undefined\r\n    at exports.default (/Users/darius/co/projpath/node_modules/babel-helper-remap-async-to-generator/lib/index.js:8:23)\r\n    at PluginPass.Function (/Users/darius/co/projpath/node_modules/babel-plugin-transform-async-to-generator/lib/index.js:13:80)\r\n    at newFn (/Users/darius/co/projpath/node_modules/babel-traverse/lib/visitors.js:276:21)\r\n    at NodePath._call (/Users/darius/co/projpath/node_modules/babel-traverse/lib/path/context.js:76:18)\r\n    at NodePath.call (/Users/darius/co/projpath/node_modules/babel-traverse/lib/path/context.js:48:17)\r\n    at NodePath.visit (/Users/darius/co/projpath/node_modules/babel-traverse/lib/path/context.js:105:12)\r\n    at TraversalContext.visitQueue (/Users/darius/co/projpath/node_modules/babel-traverse/lib/context.js:150:16)\r\n    at TraversalContext.visitSingle (/Users/darius/co/projpath/node_modules/babel-traverse/lib/context.js:108:19)\r\n    at TraversalContext.visit (/Users/darius/co/projpath/node_modules/babel-traverse/lib/context.js:192:19)\r\n    at Function.traverse.node (/Users/darius/co/projpath/node_modules/babel-traverse/lib/index.js:114:17)\r\n```\r\n\r\n### Your Environment\r\n\r\n| software         | version\r\n| ---------------- | -------\r\n| Babel            |  6.9.1 requested, deps bringin in 6.16.0 for babel-helper-remap-async-to-generator\r\n| node             | 5.11.0\r\n| npm              | 3.8.6\r\n| Operating System | OSX & Ubuntu\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/250402120","html_url":"https://github.com/babel/babel/issues/4593#issuecomment-250402120","issue_url":"https://api.github.com/repos/babel/babel/issues/4593","id":250402120,"user":{"login":"hillerstorm","id":779488,"avatar_url":"https://avatars.githubusercontent.com/u/779488?v=3","gravatar_id":"","url":"https://api.github.com/users/hillerstorm","html_url":"https://github.com/hillerstorm","followers_url":"https://api.github.com/users/hillerstorm/followers","following_url":"https://api.github.com/users/hillerstorm/following{/other_user}","gists_url":"https://api.github.com/users/hillerstorm/gists{/gist_id}","starred_url":"https://api.github.com/users/hillerstorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillerstorm/subscriptions","organizations_url":"https://api.github.com/users/hillerstorm/orgs","repos_url":"https://api.github.com/users/hillerstorm/repos","events_url":"https://api.github.com/users/hillerstorm/events{/privacy}","received_events_url":"https://api.github.com/users/hillerstorm/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T08:22:53Z","updated_at":"2016-09-29T08:22:53Z","body":"Sure upgrading to the latest version works, but doing breaking changes to packages like this while still having a semver range (^) specified is not a good habit :/\r\n\r\n(I'm referring to the change in babel-helper-remap-async-to-generator that changed the default export)\r\n\r\nYou should either stick to exact versions in all of your packages here on babel or change to proper semver :(\r\nRegressions like this should be caught by your tests, not by us trying to deploy our applications."}}
{"actor":{"display_login":"hillerstorm"}}