{"action":"created","issue":{"url":"https://api.github.com/repos/brigand/babel-plugin-flow-react-proptypes/issues/106","repository_url":"https://api.github.com/repos/brigand/babel-plugin-flow-react-proptypes","labels_url":"https://api.github.com/repos/brigand/babel-plugin-flow-react-proptypes/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/brigand/babel-plugin-flow-react-proptypes/issues/106/comments","events_url":"https://api.github.com/repos/brigand/babel-plugin-flow-react-proptypes/issues/106/events","html_url":"https://github.com/brigand/babel-plugin-flow-react-proptypes/issues/106","id":234559746,"number":106,"title":"[babel-7] Object type spread failing on imported type from libdef","user":{"login":"rosskevin","id":136564,"avatar_url":"https://avatars2.githubusercontent.com/u/136564?v=3","gravatar_id":"","url":"https://api.github.com/users/rosskevin","html_url":"https://github.com/rosskevin","followers_url":"https://api.github.com/users/rosskevin/followers","following_url":"https://api.github.com/users/rosskevin/following{/other_user}","gists_url":"https://api.github.com/users/rosskevin/gists{/gist_id}","starred_url":"https://api.github.com/users/rosskevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosskevin/subscriptions","organizations_url":"https://api.github.com/users/rosskevin/orgs","repos_url":"https://api.github.com/users/rosskevin/repos","events_url":"https://api.github.com/users/rosskevin/events{/privacy}","received_events_url":"https://api.github.com/users/rosskevin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-06-08T15:08:12Z","updated_at":"2017-06-08T17:36:38Z","closed_at":null,"body":"`babel-7` branch - I'm looking into this.  `found` is in a local libdef.\r\n\r\n```javascript\r\nimport type {RoutingState} from 'found'\r\n\r\ntype Props = {\r\n  ...$Exact<RoutingState>,\r\n  classes: Object,\r\n  children?: Element<*>,\r\n  currentUser?: CurrentUser,\r\n  t: Function,\r\n  width: string,\r\n}\r\n```\r\n\r\n![appframe_js_-_af_-____projects_af__-_rubymine_2017_2_eap](https://user-images.githubusercontent.com/136564/26935685-39cdfd2a-4c32-11e7-8a3f-d17a33b05e54.png)\r\n\r\n```\r\nTypeError: src/App/AppFrame.js: Cannot read property 'key' of undefined\r\n    at /Users/kross/projects/ui/node_modules/@alienfast/babel-plugin-flow-react-proptypes/lib/makePropTypesAst.js:154:19\r\n    at Array.map (native)\r\n    at makeObjectAstForShape (/Users/kross/projects/ui/node_modules/@alienfast/babel-plugin-flow-react-proptypes/lib/makePropTypesAst.js:153:48)\r\n    at makePropTypesAstForPropTypesAssignment (/Users/kross/projects/ui/node_modules/@alienfast/babel-plugin-flow-react-proptypes/lib/makePropTypesAst.js:43:12)\r\n    at annotate (/Users/kross/projects/ui/node_modules/@alienfast/babel-plugin-flow-react-proptypes/lib/index.js:101:85)\r\n    at /Users/kross/projects/ui/node_modules/@alienfast/babel-plugin-flow-react-proptypes/lib/index.js:181:20\r\n    at Array.forEach (native)\r\n    at PluginPass.ClassDeclaration (/Users/kross/projects/ui/node_modules/@alienfast/babel-plugin-flow-react-proptypes/lib/index.js:178:29)\r\n    at newFn (/Users/kross/projects/ui/node_modules/babel-traverse/lib/visitors.js:266:21)\r\n    at NodePath._call (/Users/kross/projects/ui/node_modules/babel-traverse/lib/path/context.js:71:18)\r\n```"},"comment":{"url":"https://api.github.com/repos/brigand/babel-plugin-flow-react-proptypes/issues/comments/307174377","html_url":"https://github.com/brigand/babel-plugin-flow-react-proptypes/issues/106#issuecomment-307174377","issue_url":"https://api.github.com/repos/brigand/babel-plugin-flow-react-proptypes/issues/106","id":307174377,"user":{"login":"rosskevin","id":136564,"avatar_url":"https://avatars2.githubusercontent.com/u/136564?v=3","gravatar_id":"","url":"https://api.github.com/users/rosskevin","html_url":"https://github.com/rosskevin","followers_url":"https://api.github.com/users/rosskevin/followers","following_url":"https://api.github.com/users/rosskevin/following{/other_user}","gists_url":"https://api.github.com/users/rosskevin/gists{/gist_id}","starred_url":"https://api.github.com/users/rosskevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosskevin/subscriptions","organizations_url":"https://api.github.com/users/rosskevin/orgs","repos_url":"https://api.github.com/users/rosskevin/repos","events_url":"https://api.github.com/users/rosskevin/events{/privacy}","received_events_url":"https://api.github.com/users/rosskevin/received_events","type":"User","site_admin":false},"created_at":"2017-06-08T17:36:38Z","updated_at":"2017-06-08T17:36:38Z","body":"`flow-typed`, which effectively is just another local libdef, is not available at `runtime`...that is if you are referring to `runtime` as a browser.  `runtime` would need to be on that local filesystem, executed in that working dir to even have a chance to resolve them."}}
{"actor":{"display_login":"rosskevin"}}