{"action":"closed","issue":{"url":"https://api.github.com/repos/ToddThomson/tsproject/issues/21","labels_url":"https://api.github.com/repos/ToddThomson/tsproject/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ToddThomson/tsproject/issues/21/comments","events_url":"https://api.github.com/repos/ToddThomson/tsproject/issues/21/events","html_url":"https://github.com/ToddThomson/tsproject/issues/21","id":72446028,"number":21,"title":"Bundle errors on duplicate import statement","user":{"login":"niemyjski","id":1020579,"avatar_url":"https://avatars.githubusercontent.com/u/1020579?v=3","gravatar_id":"","url":"https://api.github.com/users/niemyjski","html_url":"https://github.com/niemyjski","followers_url":"https://api.github.com/users/niemyjski/followers","following_url":"https://api.github.com/users/niemyjski/following{/other_user}","gists_url":"https://api.github.com/users/niemyjski/gists{/gist_id}","starred_url":"https://api.github.com/users/niemyjski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niemyjski/subscriptions","organizations_url":"https://api.github.com/users/niemyjski/orgs","repos_url":"https://api.github.com/users/niemyjski/repos","events_url":"https://api.github.com/users/niemyjski/events{/privacy}","received_events_url":"https://api.github.com/users/niemyjski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-01T14:42:43Z","updated_at":"2015-05-01T16:30:16Z","closed_at":"2015-05-01T16:30:16Z","body":"I'm not 100% sure if this is a typescript error but if you have duplicate import statements defined it breaks the bundle process:\r\n\r\n```\r\nimport { IBootstrapper } from './bootstrap/IBootstrapper';\r\nimport { IBootstrapper } from 'IBootstrapper';\r\n```\r\n\r\nOutput\r\n```\r\n[TsProject] Compiling Project Files...\r\n[TsProject] src/Exceptionless.ts(1,10): error TS2300: Duplicate identifier 'IBootstrapper'.\r\n[TsProject] src/Exceptionless.ts(4,10): error TS2300: Duplicate identifier 'IBootstrapper'.\r\n[TsProject] src/Exceptionless.ts(4,31): error TS2307: Cannot find external module 'IBootstrapper'.\r\n[TsProject] src/Exceptionless.ts(46,18): error TS2339: Property 'register' does not exist on type 'typeof NodeBootstrapper'.\r\n[TsProject] src/Exceptionless.ts(47,20): error TS2339: Property 'register' does not exist on type 'typeof WindowBootstrapper'.\r\n[TsProject] Compiling Project Bundle:  src\\exceptionless.es5\r\n[TsProject] exceptionless.es5.ts(1687,31): error TS2307: Cannot find external module 'IBootstrapper'.\r\n[TsProject] exceptionless.es5.ts(1690,18): error TS2339: Property 'register' does not exist on type 'typeof NodeBootstrapper'.\r\n[TsProject] exceptionless.es5.ts(1691,20): error TS2339: Property 'register' does not exist on type 'typeof WindowBootstrapper'.\r\n[TsProject] Build completed with errors. Outputs generated\r\n```\r\n\r\nI don't think typescript cares because I have no typescript errors in my webstorm document, but that could be a bug with webstorm.\r\n\r\nThe fix is easy, just delete the extra import statement."}}