{"action":"created","issue":{"url":"https://api.github.com/repos/reakit/reakit/issues/198","repository_url":"https://api.github.com/repos/reakit/reakit","labels_url":"https://api.github.com/repos/reakit/reakit/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/reakit/reakit/issues/198/comments","events_url":"https://api.github.com/repos/reakit/reakit/issues/198/events","html_url":"https://github.com/reakit/reakit/issues/198","id":351763661,"node_id":"MDU6SXNzdWUzNTE3NjM2NjE=","number":198,"title":"Usage with TypeScript raises error in `as.d.ts`","user":{"login":"ca057","id":12033337,"node_id":"MDQ6VXNlcjEyMDMzMzM3","avatar_url":"https://avatars3.githubusercontent.com/u/12033337?v=4","gravatar_id":"","url":"https://api.github.com/users/ca057","html_url":"https://github.com/ca057","followers_url":"https://api.github.com/users/ca057/followers","following_url":"https://api.github.com/users/ca057/following{/other_user}","gists_url":"https://api.github.com/users/ca057/gists{/gist_id}","starred_url":"https://api.github.com/users/ca057/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca057/subscriptions","organizations_url":"https://api.github.com/users/ca057/orgs","repos_url":"https://api.github.com/users/ca057/repos","events_url":"https://api.github.com/users/ca057/events{/privacy}","received_events_url":"https://api.github.com/users/ca057/received_events","type":"User","site_admin":false},"labels":[{"id":697265023,"node_id":"MDU6TGFiZWw2OTcyNjUwMjM=","url":"https://api.github.com/repos/reakit/reakit/labels/bug","name":"bug","color":"c62828","default":true},{"id":697265026,"node_id":"MDU6TGFiZWw2OTcyNjUwMjY=","url":"https://api.github.com/repos/reakit/reakit/labels/help%20wanted","name":"help wanted","color":"0e8a16","default":true},{"id":813246763,"node_id":"MDU6TGFiZWw4MTMyNDY3NjM=","url":"https://api.github.com/repos/reakit/reakit/labels/pr%20welcome","name":"pr welcome","color":"0e8a16","default":false},{"id":1022606823,"node_id":"MDU6TGFiZWwxMDIyNjA2ODIz","url":"https://api.github.com/repos/reakit/reakit/labels/typings","name":"typings","color":"2F7488","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-08-17T23:05:24Z","updated_at":"2018-08-24T19:57:32Z","closed_at":"2018-08-23T01:18:29Z","author_association":"NONE","body":"Hello!\r\n\r\nI tried to add your library to my project, which was bootstrapped with create-react-app and TypeScript. When I try to use your Button component (`import { Button } from 'reakit';`), the following error appears:\r\n\r\n```\r\npath/to/project/node_modules/reakit/ts/as.d.ts\r\n(1,8): Module '\"path/to/project/node_modules/@types/react/index\"' has no default export.\r\n```\r\n\r\nThis are my dependencies:\r\n```\r\n{\r\n  \"dependencies\": {\r\n    \"react\": \"^16.4.2\",\r\n    \"react-dom\": \"^16.4.2\",\r\n    \"react-redux\": \"^5.0.7\",\r\n    \"react-scripts-ts\": \"2.17.0\",\r\n    \"reakit\": \"^0.14.2\",\r\n    \"rebass\": \"^2.0.0-10\",\r\n    \"redux\": \"^4.0.0\",\r\n    \"redux-persist\": \"^5.10.0\",\r\n    \"reselect\": \"^3.0.1\",\r\n    \"styled-components\": \"^3.4.2\",\r\n    \"tslint\": \"^5.11.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@commitlint/cli\": \"^7.0.0\",\r\n    \"@commitlint/config-conventional\": \"^7.0.1\",\r\n    \"@types/jest\": \"^23.3.1\",\r\n    \"@types/node\": \"^10.5.8\",\r\n    \"@types/react\": \"^16.4.9\",\r\n    \"@types/react-dom\": \"^16.0.7\",\r\n    \"@types/react-redux\": \"^6.0.6\",\r\n    \"@types/rebass\": \"^0.2.23\",\r\n    \"husky\": \"^0.14.3\",\r\n    \"lint-staged\": \"^7.2.2\",\r\n    \"prettier\": \"^1.14.2\",\r\n    \"typescript\": \"^3.0.1\"\r\n  }\r\n}\r\n```\r\nIs the error on my side? Do I need to do additional steps to use your components?"},"comment":{"url":"https://api.github.com/repos/reakit/reakit/issues/comments/415866384","html_url":"https://github.com/reakit/reakit/issues/198#issuecomment-415866384","issue_url":"https://api.github.com/repos/reakit/reakit/issues/198","id":415866384,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTg2NjM4NA==","user":{"login":"ca057","id":12033337,"node_id":"MDQ6VXNlcjEyMDMzMzM3","avatar_url":"https://avatars3.githubusercontent.com/u/12033337?v=4","gravatar_id":"","url":"https://api.github.com/users/ca057","html_url":"https://github.com/ca057","followers_url":"https://api.github.com/users/ca057/followers","following_url":"https://api.github.com/users/ca057/following{/other_user}","gists_url":"https://api.github.com/users/ca057/gists{/gist_id}","starred_url":"https://api.github.com/users/ca057/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca057/subscriptions","organizations_url":"https://api.github.com/users/ca057/orgs","repos_url":"https://api.github.com/users/ca057/repos","events_url":"https://api.github.com/users/ca057/events{/privacy}","received_events_url":"https://api.github.com/users/ca057/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T19:57:32Z","updated_at":"2018-08-24T19:57:32Z","author_association":"NONE","body":"Well, I could've figured that out by myself... It's just `styled-components` raising a warning in the console.\r\nThanks for the feedback here!"}}
{"actor":{"display_login":"ca057"}}