{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/apollo-server/issues/124","repository_url":"https://api.github.com/repos/apollostack/apollo-server","labels_url":"https://api.github.com/repos/apollostack/apollo-server/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/apollo-server/issues/124/comments","events_url":"https://api.github.com/repos/apollostack/apollo-server/issues/124/events","html_url":"https://github.com/apollostack/apollo-server/issues/124","id":174911356,"number":124,"title":"Missing modules when used from TypeScript","user":{"login":"jahewson","id":467695,"avatar_url":"https://avatars.githubusercontent.com/u/467695?v=3","gravatar_id":"","url":"https://api.github.com/users/jahewson","html_url":"https://github.com/jahewson","followers_url":"https://api.github.com/users/jahewson/followers","following_url":"https://api.github.com/users/jahewson/following{/other_user}","gists_url":"https://api.github.com/users/jahewson/gists{/gist_id}","starred_url":"https://api.github.com/users/jahewson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jahewson/subscriptions","organizations_url":"https://api.github.com/users/jahewson/orgs","repos_url":"https://api.github.com/users/jahewson/repos","events_url":"https://api.github.com/users/jahewson/events{/privacy}","received_events_url":"https://api.github.com/users/jahewson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-03T18:42:54Z","updated_at":"2016-09-03T18:53:03Z","closed_at":null,"body":"Hi, I'm trying to use apollo-server with TypeScript, however I'm unable to get the compilation working due to missing module definitions.\r\n\r\nI've published [my ts port of apollo-starter-kit](https://github.com/jahewson/apollo-starter-kit/tree/server-only). If you clone that and run:\r\n\r\n```\r\nnpm install\r\nnpm run compile\r\n```\r\n\r\nYou'll get the following errors:\r\n\r\n```\r\nnode_modules/apollo-server/dist/core/runQuery.d.ts(1,72): error TS2307: Cannot find module 'graphql'.\r\nnode_modules/apollo-server/dist/integrations/apolloOptions.d.ts(1,26): error TS2307: Cannot find module 'graphql'.\r\nnode_modules/apollo-server/dist/integrations/hapiApollo.d.ts(1,23): error TS2307: Cannot find module 'hapi'.\r\nnode_modules/apollo-server/dist/integrations/koaApollo.d.ts(1,22): error TS2307: Cannot find module 'koa'.\r\nnode_modules/apollo-server/dist/modules/operationStore.d.ts(1,41): error TS2307: Cannot find module 'graphql'.\r\n```\r\n\r\nA couple of thoughts:\r\n\r\n- I'm using `tsd` to manage type definitions\r\n- I can see that installing these typings into my project could be a workaround, but I don't really want to pollute my typings directory with koa and hapi typings that I never need."},"comment":{"url":"https://api.github.com/repos/apollostack/apollo-server/issues/comments/244563671","html_url":"https://github.com/apollostack/apollo-server/issues/124#issuecomment-244563671","issue_url":"https://api.github.com/repos/apollostack/apollo-server/issues/124","id":244563671,"user":{"login":"helfer","id":6569980,"avatar_url":"https://avatars.githubusercontent.com/u/6569980?v=3","gravatar_id":"","url":"https://api.github.com/users/helfer","html_url":"https://github.com/helfer","followers_url":"https://api.github.com/users/helfer/followers","following_url":"https://api.github.com/users/helfer/following{/other_user}","gists_url":"https://api.github.com/users/helfer/gists{/gist_id}","starred_url":"https://api.github.com/users/helfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helfer/subscriptions","organizations_url":"https://api.github.com/users/helfer/orgs","repos_url":"https://api.github.com/users/helfer/repos","events_url":"https://api.github.com/users/helfer/events{/privacy}","received_events_url":"https://api.github.com/users/helfer/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T18:53:03Z","updated_at":"2016-09-03T18:53:03Z","body":"Yeah, that's a bit unfortunate. @nnance ran into the same problem a while ago. I don't know of any way around this problem that doesn't involve putting the integrations in separate modules, so that's what we'll do eventually. You'll still need the GraphQL typings, but at least you won't need the typings of servers that you don't use."}}
{"actor":{"display_login":"helfer"}}