webpack-browser-plugin
webpack-browser-plugin copied to clipboard
Cannot read property 'watch-run' of undefined
When I execute ./node_modules/.bin/webpack --mode development
I get the following error:
/Users/xxxxxxxxxxxxxxxxx/xxx/xxxx/xxxxxxxxxxxxxx/node_modules/webpack-browser-plugin/lib/index.js:154
if (compilation.compiler._plugins['watch-run']) {
^
TypeError: Cannot read property 'watch-run' of undefined
The only way I managed to make it work is by replacing
compilation.compiler._plugins['watch-run']
with
compilation.compiler.hooks['watch-run']
.
These are the versions of the installed packages
› ./node_modules/.bin/webpack-dev-server --version
webpack-dev-server 3.1.4
webpack 4.12.0
I am getting new warning
10% building 2/2 modules 0 active(node:8476) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks
instead
i 「wds」: Project is running at http://localhost:8080/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from C:\dev\webprod-cap\app\build
i 「wds」: 404s will fallback to /index.html