{"action":"created","issue":{"url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/4","labels_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/4/comments","events_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/4/events","html_url":"https://github.com/s-panferov/awesome-typescript-loader/issues/4","id":66381684,"number":4,"title":"Cannot find external module","user":{"login":"EliotVU","id":808593,"avatar_url":"https://avatars.githubusercontent.com/u/808593?v=3","gravatar_id":"","url":"https://api.github.com/users/EliotVU","html_url":"https://github.com/EliotVU","followers_url":"https://api.github.com/users/EliotVU/followers","following_url":"https://api.github.com/users/EliotVU/following{/other_user}","gists_url":"https://api.github.com/users/EliotVU/gists{/gist_id}","starred_url":"https://api.github.com/users/EliotVU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EliotVU/subscriptions","organizations_url":"https://api.github.com/users/EliotVU/orgs","repos_url":"https://api.github.com/users/EliotVU/repos","events_url":"https://api.github.com/users/EliotVU/events{/privacy}","received_events_url":"https://api.github.com/users/EliotVU/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-04-05T00:01:58Z","updated_at":"2015-04-18T14:35:02Z","closed_at":null,"body":"Given this directory structure: \r\n\r\n    /dist/data/app/script/classes/shared/item.ts\r\n    /dist/data/app/script/classes/shared/status.ts\r\n    /dist/data/app/script/classes/shared/tag.ts\r\n\r\n    /dist/data/app/script/classes/clientItem.ts\r\n    /dist/data/app/script/classes/clientTag.ts\r\n\r\nAnd importing clientItem from main.js(traceured, not typescripted), leads to:\r\n\r\n    ERROR in ./dist/data/app/script/classes/clientItem.ts\r\n    ...script/classes/clientTag.ts:0:50 \r\n    Cannot find external module './shared/tag'.\r\n\r\nAny idea why it cannot find the module even though it is obviously right there?\r\n\r\nThis is the webpack configuration:\r\n\r\n    var webpackConfig = {\r\n        devtool: 'source-map',\r\n        resolve: {\r\n            root: path.join(__dirname),\r\n            extensions: ['', '.ts', '.js'],\r\n            modulesDirectories: ['node_modules', 'bower_components']\r\n        },\r\n        resolveLoader: {\r\n            root: path.join(__dirname, 'node_modules')\r\n        },\r\n        module: {loaders: [\r\n            {\r\n                test: /\\.js$/,\r\n                loader: 'webpack-traceur?runtime&sourceMaps&experimental',\r\n                exclude: [/bower_components/, /node_modules/]\r\n            },\r\n            {\r\n                test: /\\.ts$/,\r\n                loader: 'awesome-typescript-loader?target=ES5',\r\n                exclude: [/bower_components/, /node_modules/]\r\n            }\r\n        ]},\r\n        noParse: vendorModules,\r\n        plugins: [\r\n            new webpack.ResolverPlugin(\r\n                new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('bower.json', ['main'])\r\n            ),\r\n            new webpack.ProvidePlugin({\r\n                $: 'jquery',\r\n                jQuery: 'jquery',\r\n                'window.jQuery': 'jquery'\r\n            })\r\n        ],\r\n        entry: {\r\n            app: path.join('dist', 'data', 'app', 'script', 'main.js'),\r\n            vendor: vendorModules\r\n        },\r\n        output: {\r\n            path: path.join(__dirname, 'dist', 'data', 'app', 'script'),\r\n            filename: '[name].bundle.js',\r\n            pathinfo: true\r\n        }\r\n    };\r\n\r\nNow that said, compiling those .ts files work as expected when compiling it without using any Webpack loaders."},"comment":{"url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/comments/94168467","html_url":"https://github.com/s-panferov/awesome-typescript-loader/issues/4#issuecomment-94168467","issue_url":"https://api.github.com/repos/s-panferov/awesome-typescript-loader/issues/4","id":94168467,"user":{"login":"EliotVU","id":808593,"avatar_url":"https://avatars.githubusercontent.com/u/808593?v=3","gravatar_id":"","url":"https://api.github.com/users/EliotVU","html_url":"https://github.com/EliotVU","followers_url":"https://api.github.com/users/EliotVU/followers","following_url":"https://api.github.com/users/EliotVU/following{/other_user}","gists_url":"https://api.github.com/users/EliotVU/gists{/gist_id}","starred_url":"https://api.github.com/users/EliotVU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EliotVU/subscriptions","organizations_url":"https://api.github.com/users/EliotVU/orgs","repos_url":"https://api.github.com/users/EliotVU/repos","events_url":"https://api.github.com/users/EliotVU/events{/privacy}","received_events_url":"https://api.github.com/users/EliotVU/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T14:35:02Z","updated_at":"2015-04-18T14:35:02Z","body":"Alright thanks, looking out for the fix! Currently compiling the Typescript files takes about 5-7 seconds with this reset \"hack\"."}}