{"action":"created","issue":{"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/39","repository_url":"https://api.github.com/repos/alex3165/react-mapbox-gl","labels_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/39/comments","events_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/39/events","html_url":"https://github.com/alex3165/react-mapbox-gl/issues/39","id":172313909,"number":39,"title":"Uncaught TypeError: Cannot read property '0' of undefined","user":{"login":"Harrisonl","id":10399120,"avatar_url":"https://avatars.githubusercontent.com/u/10399120?v=3","gravatar_id":"","url":"https://api.github.com/users/Harrisonl","html_url":"https://github.com/Harrisonl","followers_url":"https://api.github.com/users/Harrisonl/followers","following_url":"https://api.github.com/users/Harrisonl/following{/other_user}","gists_url":"https://api.github.com/users/Harrisonl/gists{/gist_id}","starred_url":"https://api.github.com/users/Harrisonl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harrisonl/subscriptions","organizations_url":"https://api.github.com/users/Harrisonl/orgs","repos_url":"https://api.github.com/users/Harrisonl/repos","events_url":"https://api.github.com/users/Harrisonl/events{/privacy}","received_events_url":"https://api.github.com/users/Harrisonl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/labels/To%20be%20defined","name":"To be defined","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-21T10:02:28Z","updated_at":"2016-08-24T20:55:23Z","closed_at":null,"body":"No matter what I do, I can not get the map to actually render. The box itself renders, but is empty and this error `mapbox-gl.js?31ef:295 Uncaught TypeError: Cannot read property '0' of undefined` appears every time i move my mouse around where the map should be. The cursor changes, so the map box is there, just empty. Below is the component that renders it:\r\n\r\n```js\r\nimport React from \"react\"\r\nimport cssModules from \"react-css-modules\"\r\nimport style from \"./style.css\"\r\nimport { connect } from 'react-redux'\r\nimport ReactMapboxGl, { Layer, Feature } from \"react-mapbox-gl\"\r\n\r\nconst config = {\r\n  containerStyle: {height: \"100vh\", width: \"100vw\"},\r\n  accessToken: \"....\",\r\n  style: \"mapbox://styles/mapbox/streets-v9\"\r\n};\r\n\r\nexport class Map extends React.Component {\r\n  render() {\r\n    return (\r\n      <div>\r\n        <h1>Hello</h1>\r\n        <ReactMapboxGl\r\n          style={config.style}\r\n          accessToken={config.accessToken}\r\n          containerStyle={config.containerStyle}\r\n        />\r\n      </div>\r\n    )\r\n  }\r\n}\r\n\r\nconst mapStateToProps = state => {\r\n  return {\r\n    user: state.user\r\n  }\r\n}\r\n\r\nexport default connect(mapStateToProps)(cssModules(Map, style))\r\n```"},"comment":{"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/comments/242205085","html_url":"https://github.com/alex3165/react-mapbox-gl/issues/39#issuecomment-242205085","issue_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/39","id":242205085,"user":{"login":"alex3165","id":4259832,"avatar_url":"https://avatars.githubusercontent.com/u/4259832?v=3","gravatar_id":"","url":"https://api.github.com/users/alex3165","html_url":"https://github.com/alex3165","followers_url":"https://api.github.com/users/alex3165/followers","following_url":"https://api.github.com/users/alex3165/following{/other_user}","gists_url":"https://api.github.com/users/alex3165/gists{/gist_id}","starred_url":"https://api.github.com/users/alex3165/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex3165/subscriptions","organizations_url":"https://api.github.com/users/alex3165/orgs","repos_url":"https://api.github.com/users/alex3165/repos","events_url":"https://api.github.com/users/alex3165/events{/privacy}","received_events_url":"https://api.github.com/users/alex3165/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T20:55:23Z","updated_at":"2016-08-24T20:55:23Z","body":"That is surprising because the pitch props already have `0` as a default, but if it solve the issue, it can be a temporary work around."}}
{"actor":{"display_login":"alex3165"}}