{"action":"opened","issue":{"url":"https://api.github.com/repos/valotas/preact-context/issues/13","repository_url":"https://api.github.com/repos/valotas/preact-context","labels_url":"https://api.github.com/repos/valotas/preact-context/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/valotas/preact-context/issues/13/comments","events_url":"https://api.github.com/repos/valotas/preact-context/issues/13/events","html_url":"https://github.com/valotas/preact-context/issues/13","id":351463822,"node_id":"MDU6SXNzdWUzNTE0NjM4MjI=","number":13,"title":"Build Error, Node v8.0.0 or v8.11.3","user":{"login":"aminmeyghani","id":14934358,"node_id":"MDQ6VXNlcjE0OTM0MzU4","avatar_url":"https://avatars3.githubusercontent.com/u/14934358?v=4","gravatar_id":"","url":"https://api.github.com/users/aminmeyghani","html_url":"https://github.com/aminmeyghani","followers_url":"https://api.github.com/users/aminmeyghani/followers","following_url":"https://api.github.com/users/aminmeyghani/following{/other_user}","gists_url":"https://api.github.com/users/aminmeyghani/gists{/gist_id}","starred_url":"https://api.github.com/users/aminmeyghani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aminmeyghani/subscriptions","organizations_url":"https://api.github.com/users/aminmeyghani/orgs","repos_url":"https://api.github.com/users/aminmeyghani/repos","events_url":"https://api.github.com/users/aminmeyghani/events{/privacy}","received_events_url":"https://api.github.com/users/aminmeyghani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-17T05:42:39Z","updated_at":"2018-08-17T05:42:39Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm trying to build the library(`npm i && npm run build`) but I'm getting the following error:\r\n\r\n```\r\n> tsc -p .\r\n\r\nsrc/context.ts:27:23 - error TS7017: Element implicitly has an 'any' type because type 'string | number | object | VNode<any> | ComponentChild[]' has no index signature.\r\n\r\n27   return (children && children[0]) || render;\r\n                         ~~~~~~~~~~~\r\nsrc/context.ts:62:32 - error TS2339: Property 'length' does not exist on type 'string | number | object | VNode<any> | ComponentChild[]'.\r\n  Property 'length' does not exist on type 'number'.\r\n\r\n62       if (children && children.length > 1) {\r\n                                  ~~~~~~\r\nsrc/context.ts:67:28 - error TS7017: Element implicitly has an 'any' type because type 'string | number | object | VNode<any> | ComponentChild[]' has no index signature.\r\n\r\n67       return ((children && children[0]) || null) as JSX.Element;\r\n```\r\nI'm not that familiar with TypeScript but I would appreciate any help.\r\n\r\nThanks!"}}
{"actor":{"display_login":"aminmeyghani"}}