{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2913","labels_url":"https://api.github.com/repos/babel/babel/issues/2913/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2913/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2913/events","html_url":"https://github.com/babel/babel/issues/2913","id":115705059,"number":2913,"title":"`transform-es2015-block-scoping` prints `We found a path that isn't a NodePath instance`","user":{"login":"tellnes","id":613729,"avatar_url":"https://avatars.githubusercontent.com/u/613729?v=3","gravatar_id":"","url":"https://api.github.com/users/tellnes","html_url":"https://github.com/tellnes","followers_url":"https://api.github.com/users/tellnes/followers","following_url":"https://api.github.com/users/tellnes/following{/other_user}","gists_url":"https://api.github.com/users/tellnes/gists{/gist_id}","starred_url":"https://api.github.com/users/tellnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tellnes/subscriptions","organizations_url":"https://api.github.com/users/tellnes/orgs","repos_url":"https://api.github.com/users/tellnes/repos","events_url":"https://api.github.com/users/tellnes/events{/privacy}","received_events_url":"https://api.github.com/users/tellnes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-08T02:17:16Z","updated_at":"2015-11-08T02:23:34Z","closed_at":null,"body":"script.js\r\n```js\r\nwhile (true) {\r\n  let foo = 'foo'\r\n  fn(() => foo)\r\n}\r\n```\r\n\r\nCommand:\r\n```shell\r\n$ babel --plugins transform-es2015-block-scoping script.js\r\n```\r\n\r\nOutput:\r\n```\r\nError: script.js: We found a path that isn't a NodePath instance\r\n    at Function.get (node_modules/babel-traverse/lib/path/index.js:103:13)\r\n    at TraversalContext.create (node_modules/babel-traverse/lib/context.js:73:30)\r\n    at TraversalContext.visitMultiple (node_modules/babel-traverse/lib/context.js:102:25)\r\n    at TraversalContext.visit (node_modules/babel-traverse/lib/context.js:193:19)\r\n    at Function.traverse.node (node_modules/babel-traverse/lib/index.js:139:17)\r\n    at traverse (node_modules/babel-traverse/lib/index.js:61:12)\r\n    at Function.traverse.hasType (node_modules/babel-traverse/lib/index.js:188:3)\r\n    at BlockScoping.wrapClosure (node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:491:47)\r\n    at BlockScoping.run (node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:383:12)\r\n    at PluginPass.Loop (node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:89:36)\r\n```\r\n\r\nAdditional:\r\n```shell\r\n$ babel --version\r\n6.0.14 (babel-core 6.0.14)\r\n\r\n$ cat node_modules/babel-plugin-transform-es2015-block-scoping/package.json | jq .version\r\n\"6.0.14\"\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/154771034","html_url":"https://github.com/babel/babel/issues/2913#issuecomment-154771034","issue_url":"https://api.github.com/repos/babel/babel/issues/2913","id":154771034,"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-08T02:23:34Z","updated_at":"2015-11-08T02:23:34Z","body":"Looks similar to https://github.com/babel/babel/issues/2644.\r\n\r\nIf you aren't using npm 3, can you try using that? (I can't reproduce with npm 3)"}}