{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/tsify/issues/235","repository_url":"https://api.github.com/repos/TypeStrong/tsify","labels_url":"https://api.github.com/repos/TypeStrong/tsify/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/tsify/issues/235/comments","events_url":"https://api.github.com/repos/TypeStrong/tsify/issues/235/events","html_url":"https://github.com/TypeStrong/tsify/issues/235","id":304961979,"number":235,"title":"Cannot use typescript class from other local typescript module","user":{"login":"Sheldan","id":5037282,"avatar_url":"https://avatars1.githubusercontent.com/u/5037282?v=4","gravatar_id":"","url":"https://api.github.com/users/Sheldan","html_url":"https://github.com/Sheldan","followers_url":"https://api.github.com/users/Sheldan/followers","following_url":"https://api.github.com/users/Sheldan/following{/other_user}","gists_url":"https://api.github.com/users/Sheldan/gists{/gist_id}","starred_url":"https://api.github.com/users/Sheldan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sheldan/subscriptions","organizations_url":"https://api.github.com/users/Sheldan/orgs","repos_url":"https://api.github.com/users/Sheldan/repos","events_url":"https://api.github.com/users/Sheldan/events{/privacy}","received_events_url":"https://api.github.com/users/Sheldan/received_events","type":"User","site_admin":false},"labels":[{"id":352534093,"url":"https://api.github.com/repos/TypeStrong/tsify/labels/upstream","name":"upstream","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-13T22:43:35Z","updated_at":"2018-03-15T11:48:52Z","closed_at":null,"author_association":"NONE","body":"I have a common npm module containing TypeScript which is an node module providing some classes and functionality. This module is packaged via `browserify` + `tsify` (a plugin for compiling typescript) and also exports the declaration files and built with `gulp`.\r\n\r\nI have another npm module using TypeScript which imports this module locally via `file:../modulename` and tries to use functionality from the first module. The second module is also packaged via `browserify` + `tsify` and built with `gulp`. The compilation of the second module works via `npx tsc`, but fails if I execute the gulp build file with the error message\r\n\r\n> Error: Cannot find module './AbstractClass' from 'folderInOtherModuleContainingTheJSFiles'\r\n\r\nInterestingly it sometimes fails with this Class sometimes with another, so it seems there is also some kind of concurrent processing.\r\n\r\nI extracted the failing code from my project and created a minimal example with this behavior [here](https://github.com/Sheldan/npm-minimal-working-example)."},"comment":{"url":"https://api.github.com/repos/TypeStrong/tsify/issues/comments/373349972","html_url":"https://github.com/TypeStrong/tsify/issues/235#issuecomment-373349972","issue_url":"https://api.github.com/repos/TypeStrong/tsify/issues/235","id":373349972,"user":{"login":"Sheldan","id":5037282,"avatar_url":"https://avatars1.githubusercontent.com/u/5037282?v=4","gravatar_id":"","url":"https://api.github.com/users/Sheldan","html_url":"https://github.com/Sheldan","followers_url":"https://api.github.com/users/Sheldan/followers","following_url":"https://api.github.com/users/Sheldan/following{/other_user}","gists_url":"https://api.github.com/users/Sheldan/gists{/gist_id}","starred_url":"https://api.github.com/users/Sheldan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sheldan/subscriptions","organizations_url":"https://api.github.com/users/Sheldan/orgs","repos_url":"https://api.github.com/users/Sheldan/repos","events_url":"https://api.github.com/users/Sheldan/events{/privacy}","received_events_url":"https://api.github.com/users/Sheldan/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T11:48:52Z","updated_at":"2018-03-15T11:48:52Z","author_association":"NONE","body":"Thats a very weird issue. Parts of the solution were based of the typescript documentation, do you think there should be an issue there? Or where does the require come from?"}}
{"actor":{"display_login":"Sheldan"}}