{"action":"created","issue":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/151","repository_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin","labels_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/151/comments","events_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/151/events","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/151","id":124351217,"number":151,"title":"Error \"Child compilation failed\" when using Typescript","user":{"login":"MarkusKramer","id":1502825,"avatar_url":"https://avatars.githubusercontent.com/u/1502825?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkusKramer","html_url":"https://github.com/MarkusKramer","followers_url":"https://api.github.com/users/MarkusKramer/followers","following_url":"https://api.github.com/users/MarkusKramer/following{/other_user}","gists_url":"https://api.github.com/users/MarkusKramer/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkusKramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkusKramer/subscriptions","organizations_url":"https://api.github.com/users/MarkusKramer/orgs","repos_url":"https://api.github.com/users/MarkusKramer/repos","events_url":"https://api.github.com/users/MarkusKramer/events{/privacy}","received_events_url":"https://api.github.com/users/MarkusKramer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-30T13:57:31Z","updated_at":"2016-02-28T08:00:41Z","closed_at":null,"body":"I'm trying to use version 2.1.0 in my typscript project. When I add an error Typescript will report the appropriate error (\"error TS2304: Cannot find name 'consol'\"). After fixing it I'm getting this:\r\n\r\n    HtmlWebpackPlugin Error: Child compilation failed:\r\n    (2,1): error TS2304: Cannot find name 'consol'.\r\n\r\nAfter restarting webpack-dev-server it works again. This bug is not present in 1.7.0 so I'll simply continue to use this version.\r\n\r\nwebpack.config.js\r\n```\r\nvar webpack = require('webpack');\r\nvar HtmlWebpackPlugin = require('html-webpack-plugin');\r\n\r\nmodule.exports = {\r\n    entry: {\r\n        mockApp: './main'\r\n    },\r\n    devtool: 'source-map',\r\n    resolve: {\r\n        extensions: ['', '.webpack.js', '.web.js', '.ts', '.js'],\r\n    },\r\n    plugins: [\r\n              new HtmlWebpackPlugin({}),\r\n    ],\r\n    module: {\r\n        loaders: [\r\n            {\r\n                test: /\\.ts$/,\r\n                loader: 'ts'\r\n            },\r\n        ]\r\n    }\r\n}\r\n\r\n```\r\n\r\nmain.ts\r\n```\r\nconsole.log(\"hello\");\r\n```\r\n\r\ntsconfig.json\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"sourceMap\": true,\r\n    \"module\": \"commonjs\",\r\n    \"target\": \"ES5\"\r\n  },\r\n  \"files\": [\r\n    \"./main.ts\"\r\n  ]\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/comments/189817353","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/151#issuecomment-189817353","issue_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/151","id":189817353,"user":{"login":"jantimon","id":4113649,"avatar_url":"https://avatars.githubusercontent.com/u/4113649?v=3","gravatar_id":"","url":"https://api.github.com/users/jantimon","html_url":"https://github.com/jantimon","followers_url":"https://api.github.com/users/jantimon/followers","following_url":"https://api.github.com/users/jantimon/following{/other_user}","gists_url":"https://api.github.com/users/jantimon/gists{/gist_id}","starred_url":"https://api.github.com/users/jantimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantimon/subscriptions","organizations_url":"https://api.github.com/users/jantimon/orgs","repos_url":"https://api.github.com/users/jantimon/repos","events_url":"https://api.github.com/users/jantimon/events{/privacy}","received_events_url":"https://api.github.com/users/jantimon/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T08:00:41Z","updated_at":"2016-02-28T08:00:41Z","body":"@jbrantly sorry for the delay.. I am sorry but the child compilation stuff is really hard to understand and there is almost no documentation for it. RIght now I am moving into another country and therefore I can't support this well at the moment."}}