{"action":"created","issue":{"url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/705","repository_url":"https://api.github.com/repos/jantimon/html-webpack-plugin","labels_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/705/comments","events_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/705/events","html_url":"https://github.com/jantimon/html-webpack-plugin/issues/705","id":237044387,"number":705,"title":"Webpack 3 issue - ExternalModuleFactoryPlugin - 'request' of undefined","user":{"login":"mcrawshaw","id":12789086,"avatar_url":"https://avatars2.githubusercontent.com/u/12789086?v=3","gravatar_id":"","url":"https://api.github.com/users/mcrawshaw","html_url":"https://github.com/mcrawshaw","followers_url":"https://api.github.com/users/mcrawshaw/followers","following_url":"https://api.github.com/users/mcrawshaw/following{/other_user}","gists_url":"https://api.github.com/users/mcrawshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/mcrawshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcrawshaw/subscriptions","organizations_url":"https://api.github.com/users/mcrawshaw/orgs","repos_url":"https://api.github.com/users/mcrawshaw/repos","events_url":"https://api.github.com/users/mcrawshaw/events{/privacy}","received_events_url":"https://api.github.com/users/mcrawshaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-06-19T22:41:50Z","updated_at":"2017-06-20T10:16:55Z","closed_at":null,"body":"Upgrading to webpack 3 generates an error when used with this plugin.\r\n\r\nDegrading to webpack 2.x or removing the plugin from config resolves the error.\r\n\r\nNote a simular issue here:\r\nhttps://github.com/jantimon/html-webpack-plugin/issues/596\r\n\r\nNote webpack 3 compatibility issue & PR:\r\nhttps://github.com/jantimon/html-webpack-plugin/issues/699\r\nhttps://github.com/jantimon/html-webpack-plugin/pull/704\r\n\r\nPlugin version:\r\n```\r\nyarn list v0.24.6\r\n└─ html-webpack-plugin@2.28.0\r\n✨  Done in 1.13s.\r\n```\r\nWebpack version:\r\n```\r\nyarn list v0.24.6\r\n└─ webpack@3.0.0\r\n✨  Done in 1.11s.\r\n```\r\n\r\nSummarised webpack.config (i've tried a blank plugin config - no change):\r\n```\r\nvar webpack = require('webpack');\r\nvar path = require('path');\r\nvar htmlWebpackPlugin = require('html-webpack-plugin');\r\nvar faviconsWebpackPlugin = require('favicons-webpack-plugin');\r\n\r\nconst root = process.cwd();\r\n\r\nmodule.exports = {\r\n  resolve: {\r\n    extensions: ['.tsx', '.ts', '.js', '.json']\r\n  },\r\n  plugins: [\r\n    ...\r\n    new htmlWebpackPlugin({\r\n      title: 'HiveHub',\r\n      description: 'A mapping platform for software systems',\r\n      filename: 'index.html',\r\n      template: path.join(root, 'src/index.ejs'),\r\n      inject: false,\r\n      appMountId: 'root',\r\n      initialState: 'null',\r\n      initialContent: 'null'\r\n    })\r\n  ],\r\n  module: {\r\n    rules: [\r\n      ...\r\n    ]\r\n  }\r\n};\r\n```\r\n\r\nFull stack dump:\r\n```\r\nERROR in   TypeError: Cannot read property 'request' of undefined\r\n\r\n  - ExternalModuleFactoryPlugin.js:37 handleExternals\r\n    [metamap]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleF    actoryPlugin.js:37:33\r\n\r\n  - ExternalModuleFactoryPlugin.js:46 next\r\n    [metamap]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleF    actoryPlugin.js:46:8\r\n\r\n  - ExternalModuleFactoryPlugin.js:59 handleExternals\r\n    [metamap]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleF    actoryPlugin.js:59:7\r\n\r\n  - ExternalModuleFactoryPlugin.js:79 ExternalModuleFactoryPlugin    .<anonymous>\r\n    [metamap]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleF    actoryPlugin.js:79:5\r\n\r\n  - NormalModuleFactory.js:246 applyPluginsAsyncWaterfall\r\n    [metamap]/[webpack]/lib/NormalModuleFactory.js:246:4\r\n\r\n  - Tapable.js:196 NormalModuleFactory.applyPluginsAsyncWaterfall    [metamap]/[webpack]/[tapable]/lib/Tapable.js:196:70\r\n\r\n  - NormalModuleFactory.js:230 NormalModuleFactory.create\r\n    [metamap]/[webpack]/lib/NormalModuleFactory.js:230:8\r\n\r\n  - Compilation.js:383 Compilation._addModuleChain\r\n    [metamap]/[webpack]/lib/Compilation.js:383:17\r\n\r\n  - Compilation.js:465 Compilation.addEntry\r\n    [metamap]/[webpack]/lib/Compilation.js:465:8\r\n\r\n  - SingleEntryPlugin.js:22 SingleEntryPlugin.<anonymous>\r\n    [metamap]/[html-webpack-plugin]/[webpack]/lib/SingleEntryPlug    in.js:22:15\r\n\r\n  - Tapable.js:229 Compiler.applyPluginsParallel\r\n    [metamap]/[webpack]/[tapable]/lib/Tapable.js:229:14\r\n\r\n  - Compiler.js:505\r\n    [metamap]/[webpack]/lib/Compiler.js:505:8\r\n\r\n  - Tapable.js:131 Compiler.applyPluginsAsyncSeries\r\n    [metamap]/[webpack]/[tapable]/lib/Tapable.js:131:46\r\n\r\n  - Compiler.js:498 Compiler.compile\r\n    [metamap]/[webpack]/lib/Compiler.js:498:7\r\n\r\n  - Compiler.js:284 Compiler.runAsChild\r\n    [metamap]/[webpack]/lib/Compiler.js:284:7\r\n\r\n  - compiler.js:70\r\n    [metamap]/[html-webpack-plugin]/lib/compiler.js:70:19\r\n```"},"comment":{"url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/comments/309709637","html_url":"https://github.com/jantimon/html-webpack-plugin/issues/705#issuecomment-309709637","issue_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/705","id":309709637,"user":{"login":"mastilver","id":4112409,"avatar_url":"https://avatars0.githubusercontent.com/u/4112409?v=3","gravatar_id":"","url":"https://api.github.com/users/mastilver","html_url":"https://github.com/mastilver","followers_url":"https://api.github.com/users/mastilver/followers","following_url":"https://api.github.com/users/mastilver/following{/other_user}","gists_url":"https://api.github.com/users/mastilver/gists{/gist_id}","starred_url":"https://api.github.com/users/mastilver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mastilver/subscriptions","organizations_url":"https://api.github.com/users/mastilver/orgs","repos_url":"https://api.github.com/users/mastilver/repos","events_url":"https://api.github.com/users/mastilver/events{/privacy}","received_events_url":"https://api.github.com/users/mastilver/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T10:16:55Z","updated_at":"2017-06-20T10:16:55Z","body":"Do you think any of you can provide a repo to reproduce it?\r\n\r\nOn my project I only get a warning on `npm install` but except that everything is running fine... "}}
{"actor":{"display_login":"mastilver"}}