{"action":"opened","issue":{"url":"https://api.github.com/repos/rtsao/styletron/issues/22","repository_url":"https://api.github.com/repos/rtsao/styletron","labels_url":"https://api.github.com/repos/rtsao/styletron/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/rtsao/styletron/issues/22/comments","events_url":"https://api.github.com/repos/rtsao/styletron/issues/22/events","html_url":"https://github.com/rtsao/styletron/issues/22","id":193904026,"number":22,"title":"Can't get it work with CRA.","user":{"login":"sammkj","id":9153498,"avatar_url":"https://avatars.githubusercontent.com/u/9153498?v=3","gravatar_id":"","url":"https://api.github.com/users/sammkj","html_url":"https://github.com/sammkj","followers_url":"https://api.github.com/users/sammkj/followers","following_url":"https://api.github.com/users/sammkj/following{/other_user}","gists_url":"https://api.github.com/users/sammkj/gists{/gist_id}","starred_url":"https://api.github.com/users/sammkj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammkj/subscriptions","organizations_url":"https://api.github.com/users/sammkj/orgs","repos_url":"https://api.github.com/users/sammkj/repos","events_url":"https://api.github.com/users/sammkj/events{/privacy}","received_events_url":"https://api.github.com/users/sammkj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T22:29:37Z","updated_at":"2016-12-06T22:29:37Z","closed_at":null,"body":"Here's what I did:\r\n\r\n```\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport Styletron from 'styletron';\r\nimport { StyletronProvider } from 'styletron-react';\r\nimport App from './App';\r\nimport './index.css';\r\n\r\nconst styletron = new Styletron(document.getElementsByClassName('styletron'));\r\n\r\nReactDOM.render(\r\n  <StyletronProvider styletron={styletron}>\r\n    <App/>\r\n  </StyletronProvider>,\r\n  document.getElementById('root')\r\n);\r\n```\r\n\r\nand I keep getting:\r\n\r\n```\r\nUncaught TypeError: Cannot read property 'sheet' of undefined\r\n    at StyletronClient.injectDeclaration (styletron-client.js:92)\r\n    at injectWithPlugins (inject-style-prefixed.js:89)\r\n    at Object.injectStyle [as injectStylePrefixed] (inject-style-prefixed.js:46)\r\n    at StyledElement (styled.js:77)\r\n    at ReactCompositeComponent.js:306\r\n    at measureLifeCyclePerf (ReactCompositeComponent.js:75)\r\n    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (ReactCompositeComponent.js:305)\r\n    at ReactCompositeComponentWrapper._constructComponent (ReactCompositeComponent.js:280)\r\n    at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:188)\r\n    at Object.mountComponent (ReactReconciler.js:46)\r\n```"}}
{"actor":{"display_login":"sammkj"}}