When upgrading webpack4 to webpack5, an html-webpack-plugin error occurred
yzsn-wjc opened this issue · 1 comments
yzsn-wjc commented
"webpack": "^5.86.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.15.1",
"html-webpack-plugin": "^5.5.3",
Cannot read property 'tap' of undefined at HtmlWebpackPlugin.apply
when use html-webpack-plugin@4 occurred other error
UnhandledPromiseRejectionWarning: TypeError: compilation.getAssetPath is not a function
alexander-akait commented
You still have webpack@4 or use an old version of plugin (read the error messae when use html-webpack-plugin@4 occurred other error
), please run npm ls webpack
or npm ls html-webpack-plugin
and fix it, thank you