{"action":"created","issue":{"url":"https://api.github.com/repos/basvandenberg/angular2-select/issues/27","repository_url":"https://api.github.com/repos/basvandenberg/angular2-select","labels_url":"https://api.github.com/repos/basvandenberg/angular2-select/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/basvandenberg/angular2-select/issues/27/comments","events_url":"https://api.github.com/repos/basvandenberg/angular2-select/issues/27/events","html_url":"https://github.com/basvandenberg/angular2-select/issues/27","id":183161753,"number":27,"title":"Cannot start application: \"cannot find type definition for file for 'core-js'\"","user":{"login":"matthewhegarty","id":6249838,"avatar_url":"https://avatars.githubusercontent.com/u/6249838?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewhegarty","html_url":"https://github.com/matthewhegarty","followers_url":"https://api.github.com/users/matthewhegarty/followers","following_url":"https://api.github.com/users/matthewhegarty/following{/other_user}","gists_url":"https://api.github.com/users/matthewhegarty/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewhegarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewhegarty/subscriptions","organizations_url":"https://api.github.com/users/matthewhegarty/orgs","repos_url":"https://api.github.com/users/matthewhegarty/repos","events_url":"https://api.github.com/users/matthewhegarty/events{/privacy}","received_events_url":"https://api.github.com/users/matthewhegarty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-14T22:13:25Z","updated_at":"2016-10-17T21:41:06Z","closed_at":null,"body":"Getting the current error on app start\r\n\r\n```\r\nnode_modules/angular2-select/src/select-dropdown.component.d.ts(1,1): error TS2688: Cannot find type definition file for 'core-js'.\r\nnode_modules/angular2-select/src/select.component.d.ts(1,1): error TS2688: Cannot find type definition file for 'core-js'.\r\n```\r\n\r\n`tsconfig.json` refers to `\"node_modules/@types/**/*.d.ts\"`\r\n\r\nI don't have the @types folder by default.  If I install with `npm install @types/core-js` then when I try to start application with `npm run start` I get loads of errors:\r\n\r\n```\r\ntypings/globals/core-js/index.d.ts(3051,5): error TS2300: Duplicate identifier 'export='.\r\n```\r\n(removing `typings/globals/core-js` just gives different errors)\r\n\r\n**Workaround:** If I remove the triple-slash directive at the top of the two *.d.ts files mentioned above then the issue goes away.  (others have fixed with a similar [hack](https://github.com/swimlane/angular2-data-table/commit/959b77dbfa1ea904fbe832ceafe5ff7cca85d8c9))\r\n\r\nI have spent a few hours reading docs and I can't figure out how to do this properly.  Possibly upgrading to [Typescript 2.0 beta might fix it](https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/), but haven't tried yet.\r\n\r\nA full removal of `node_modules`, `typings` and then a `npm cache clean`, followed by a `npm install` doesn't fix the issue.\r\n\r\nNo idea what's going on here because the `angular2-select-demo` works ok on the same environment.\r\nAny TypeScript experts able to help explain what's going on?"},"comment":{"url":"https://api.github.com/repos/basvandenberg/angular2-select/issues/comments/254342821","html_url":"https://github.com/basvandenberg/angular2-select/issues/27#issuecomment-254342821","issue_url":"https://api.github.com/repos/basvandenberg/angular2-select/issues/27","id":254342821,"user":{"login":"matthewhegarty","id":6249838,"avatar_url":"https://avatars.githubusercontent.com/u/6249838?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewhegarty","html_url":"https://github.com/matthewhegarty","followers_url":"https://api.github.com/users/matthewhegarty/followers","following_url":"https://api.github.com/users/matthewhegarty/following{/other_user}","gists_url":"https://api.github.com/users/matthewhegarty/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewhegarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewhegarty/subscriptions","organizations_url":"https://api.github.com/users/matthewhegarty/orgs","repos_url":"https://api.github.com/users/matthewhegarty/repos","events_url":"https://api.github.com/users/matthewhegarty/events{/privacy}","received_events_url":"https://api.github.com/users/matthewhegarty/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T21:41:06Z","updated_at":"2016-10-17T21:41:06Z","body":"I now have a more robust [fix](https://github.com/matthewhegarty/angular2-select-demo/commit/b385984f65553f06fc48591da34c78ccf80d30b5), which is \"don't use typings\".  It seems that an `npm install` is sufficient, and will work from a clean install.  This seems to be best practice, as described [here](https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/)"}}
{"actor":{"display_login":"matthewhegarty"}}