I tried to run the Vuetify VueJS Cordova example but got this error after npm run dev
node build/dev-server.js
Starting dev server... (node:1024) DeprecationWarning: Tapable.plugin is deprecated. Use new API on
.hooks
instead (node:1024) DeprecationWarning: Tapable.apply is deprecated. Call apply on the plugin directly instead
How to fix it? I already update all NPM packages, didn't help.
The deprecation message:
Is just a warning:
So there's nothing you have or should do about it.
Other than that, I trust you are receiving an error like:
You should update your
html-webpack-plugin
to the latest version:And the error should go away.
There are several plugins that could be causing this warning on Webpack 4 because they are still using the old plugin API, they need to be upgraded to the latest version. To find which plugin(s) is causing the warning, put this on the top of your webpack config file:
process.traceDeprecation = true
You will see a detailed stack trace like this:
In this case it means
friendly-errors-webpack-plugin
is the responsible for the warning.Alternatively you can run your node process adding the
--trace-deprecation
flag.After you find which plugin is causing the warning upgrade it using your package manger, and the warning should go away:
yarn upgrade friendly-errors-webpack-plugin
If you wan't to entirely suppress deprecation warnings like this one (NOT RECOMMENDED), use
process.noDeprecation = true
This worked for me to quickly find the issue, I hope it helps others.
I was facing the same issue. Resolved using this command:-
I ran into this issue when I attempted to run webpack-dev-server twice, one running in one terminal, another I tried to run in a different terminal. Running only one resolved the issue.
In my case the problem was in webpack-cleanup-plugin. I have fixed it after replacing this plugin with clean-self-webpack-plugin.