html-webpack-plugin: TypeError: Cannot read property 'request' of undefined every time upgrade occurs (don't close please)

TypeError: Cannot read property 'request' of undefined occurs every time webpack is upgraded and it’s very bothersome. The following was closed https://github.com/jantimon/html-webpack-plugin/issues/683 and the solution is correct: removing node_modules and reinstall everything again because of conflicts.

Now here an example where the error is fired (just upgraded webpack): how can I identify the troublesome modules to ask maintainer to update their dependencies?

imac:react-app damz$ npm ls webpack
react-app@1.0.17 /Users/damz/Desktop/react-app
├─┬ favicons-webpack-plugin@0.0.7
│ └── webpack@1.15.0 
├─┬ html-webpack-plugin@2.30.1
│ └── webpack@1.15.0  extraneous
├─┬ react-create-app@1.0.9
│ └── webpack@3.5.1  deduped
├─┬ react-create-store@1.0.10
│ └── webpack@3.5.1  deduped
├─┬ string-replace-loader@1.3.0
│ └── webpack@1.15.0  extraneous
├─┬ stylelint-webpack-plugin@0.9.0
│ └── webpack@1.15.0  extraneous
└─┬ webpack@3.5.1 
  └─┬ uglifyjs-webpack-plugin@0.4.6
    └── webpack@1.15.0  extraneous

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 16 (2 by maintainers)

Most upvoted comments

Sure, this is before upgrading and without errors => https://pastebin.com/raw/Fsvw1ywJ Here after upgrading and with error => https://pastebin.com/raw/a22XkudN

The diff: https://www.diffchecker.com/BHVZT1CJ