WebPack TypeError: Cannot read property 'request' of undefined
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've inherited an existing Angular2 project. When I run NPM start I get a long error beginning with: Html Webpack Plugin: TypeError: Cannot read property 'request' of undefined ... Full error output: http://textuploader.com/d5n25 Any ideas what this means and how I can debug this to find out the file/line of code that is the problem? Also on Windows 8.1 if that information helps. 回答1: I had the same issue. Mine came from multiple versions of both webpack and HTML Webpack Plugin. Check with npm ls webpack html-webpack-plugin whether you are