jharris4 / html-webpack-tags-plugin

lets you define html tags to inject with html-webpack-plugin
MIT License
255 stars 31 forks source link

Error: Cannot find module 'html-webpack-plugin' Require stack: #72

Open stevemarksd opened 3 years ago

stevemarksd commented 3 years ago

I'm getting Error: Cannot find module 'html-webpack-plugin' Require stack:

I'm using in gatsby. Anyone knows why is requiring a module that is not specified in node_modules?

  Error: Cannot find module 'html-webpack-plugin'
  Require stack:
  - \node_modules\html-webpack-tags-plugin\index.js
  - \node_modules\gatsby-plugin-netlify-cms\gatsby-node.js
jharris4 commented 3 years ago

I can't speak to gatsby specific issues, but it might be a good idea for this plugin to list html-webpack-plugin as a peerDependency...

jharris4 commented 3 years ago

@stevemarksd version 3.0.1 has just been published to update the peerDependencies.

Provided you're already using version 3.x (which requires webpack >= 5.x) can you update your dependencies and confirm whether the issue is resolved?