{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2861","repository_url":"https://api.github.com/repos/angular-ui/ui-router","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2861/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2861/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2861/events","html_url":"https://github.com/angular-ui/ui-router/issues/2861","id":164288452,"number":2861,"title":"typescript compilation errors \"Cannot find name 'Promise'\"","user":{"login":"ivanvoznyakovsky","id":6418145,"avatar_url":"https://avatars.githubusercontent.com/u/6418145?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanvoznyakovsky","html_url":"https://github.com/ivanvoznyakovsky","followers_url":"https://api.github.com/users/ivanvoznyakovsky/followers","following_url":"https://api.github.com/users/ivanvoznyakovsky/following{/other_user}","gists_url":"https://api.github.com/users/ivanvoznyakovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanvoznyakovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanvoznyakovsky/subscriptions","organizations_url":"https://api.github.com/users/ivanvoznyakovsky/orgs","repos_url":"https://api.github.com/users/ivanvoznyakovsky/repos","events_url":"https://api.github.com/users/ivanvoznyakovsky/events{/privacy}","received_events_url":"https://api.github.com/users/ivanvoznyakovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-07T11:32:53Z","updated_at":"2016-11-15T22:44:30Z","closed_at":"2016-07-10T08:04:25Z","body":"``` sh\nerror TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/ng1/directives/viewDirective.d.ts\n(8,17): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/ng1/statebuilders/views.d.ts\n(40,66): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/state/stateService.d.ts\n(74,39): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/transition/transitionHook.d.ts\n(15,1919\u001B[31m): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/transition/transitionHook.d.ts\n(21,40): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/transition/transitionHook.d.ts\n(28,87): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/transition/interface.d.ts\n(209,66): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/view/interface.d.ts\n(48,13): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/resolve/resolveContext.d.ts\n(76,57): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/resolve/resolvable.d.ts\n(25,14): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/resolve/resolvable.d.ts\n(66,62): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/state/interface.d.ts\n(12,44): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/transition/transition.d.ts\n(37,14): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/transition/transition.d.ts\n(232,12): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/common/common.d.ts\n(333,58): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/common/common.d.ts\n(333,75): error TS2304: Cannot find name 'Promise'<project_root>/node_modules/angular-ui-router/commonjs/common/common.d.ts\n```\n\npackage version 1.0.0-beta.1\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/260794526","html_url":"https://github.com/angular-ui/ui-router/issues/2861#issuecomment-260794526","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2861","id":260794526,"user":{"login":"christopherthielen","id":2053478,"avatar_url":"https://avatars.githubusercontent.com/u/2053478?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherthielen","html_url":"https://github.com/christopherthielen","followers_url":"https://api.github.com/users/christopherthielen/followers","following_url":"https://api.github.com/users/christopherthielen/following{/other_user}","gists_url":"https://api.github.com/users/christopherthielen/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherthielen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherthielen/subscriptions","organizations_url":"https://api.github.com/users/christopherthielen/orgs","repos_url":"https://api.github.com/users/christopherthielen/repos","events_url":"https://api.github.com/users/christopherthielen/events{/privacy}","received_events_url":"https://api.github.com/users/christopherthielen/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T22:44:30Z","updated_at":"2016-11-15T22:44:30Z","body":"I recommend using typescript 2.0+ and adding to your tsconfig.json:\r\n\r\n```\r\n{ \r\n  \"compilerOptions\": {\r\n    \"lib\": [\"es2015\", \"dom\"]\r\n  }\r\n}\r\n```\r\n\r\nThis tells typescript to use the .d.ts files from `/node_modules/typescript/lib/lib.<library>.d.ts`"}}
{"actor":{"display_login":"christopherthielen"}}