{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/185","repository_url":"https://api.github.com/repos/TypeStrong/ts-loader","labels_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/185/comments","events_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/185/events","html_url":"https://github.com/TypeStrong/ts-loader/issues/185","id":147571345,"number":185,"title":"webpack hangs when declaration:true without creating d.ts files","user":{"login":"yaroslavya","id":379403,"avatar_url":"https://avatars.githubusercontent.com/u/379403?v=3","gravatar_id":"","url":"https://api.github.com/users/yaroslavya","html_url":"https://github.com/yaroslavya","followers_url":"https://api.github.com/users/yaroslavya/followers","following_url":"https://api.github.com/users/yaroslavya/following{/other_user}","gists_url":"https://api.github.com/users/yaroslavya/gists{/gist_id}","starred_url":"https://api.github.com/users/yaroslavya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaroslavya/subscriptions","organizations_url":"https://api.github.com/users/yaroslavya/orgs","repos_url":"https://api.github.com/users/yaroslavya/repos","events_url":"https://api.github.com/users/yaroslavya/events{/privacy}","received_events_url":"https://api.github.com/users/yaroslavya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TypeStrong/ts-loader/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-11T22:14:53Z","updated_at":"2016-05-27T08:12:00Z","closed_at":null,"body":"I cloned this repo: `https://github.com/adrianhall/example-typescript-webpack`\r\nthen `npm install` and if I make `npm run prepublish` it generates the js files normally, but if I change the declaration to `declaration:true` in `tsconfig.json` then `npm run prepublish` just hangs, right after it generates the `.js` files. For now whatever I try the ts-loader doesn't generate the d.ts file for my bundle and always hangs after it generated the js files.\r\n\r\nI saw the similar issues were fixed some time ago, like with this pull request: `https://github.com/TypeStrong/ts-loader/pull/175`, but in spite the version was 0.8.2 it doesn't work for me at all"},"comment":{"url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/comments/222086942","html_url":"https://github.com/TypeStrong/ts-loader/issues/185#issuecomment-222086942","issue_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/185","id":222086942,"user":{"login":"t246246","id":19387062,"avatar_url":"https://avatars.githubusercontent.com/u/19387062?v=3","gravatar_id":"","url":"https://api.github.com/users/t246246","html_url":"https://github.com/t246246","followers_url":"https://api.github.com/users/t246246/followers","following_url":"https://api.github.com/users/t246246/following{/other_user}","gists_url":"https://api.github.com/users/t246246/gists{/gist_id}","starred_url":"https://api.github.com/users/t246246/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t246246/subscriptions","organizations_url":"https://api.github.com/users/t246246/orgs","repos_url":"https://api.github.com/users/t246246/repos","events_url":"https://api.github.com/users/t246246/events{/privacy}","received_events_url":"https://api.github.com/users/t246246/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T08:12:00Z","updated_at":"2016-05-27T08:12:00Z","body":"'Hang at emit: 95%' occurs only on windows. On linux and Mac, it does not hang, but generate d.ts under the directory dist - that is defined at path in webpack.config.js - with creating full path of the src directory.   That's why it hangs because full path of windows include 'C:' or something and : is invalid as a filename.\r\n\r\nAnd still it is not the desired result. It should generate d.ts on original .ts directory.\r\n\r\nIf you remove path entry from webpack,config.js, \r\n```javascript\r\noutput: {\r\n    // path: path.join(__dirname, '/dist'),\r\n    filename: outputFile,\r\n   ...\r\n```\r\nyou will get .d.ts at the desired place. (However final js files will not go to dist/ but generated on top.)"}}
{"actor":{"display_login":"t246246"}}