question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead

See original GitHub issue

Hi,

This warning is causing, due to upgradation on Webpack 4 because they are still using the old plugin API, they need to be upgraded to the latest version.

I am getting the below error:

(node:10740) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead [ERROR] at VisualizerPlugin.apply (C:\Users\Hp\Desktop\New folder (2)\gateway_upgrade\node_modules\webpack-visualizer-plugin\lib\plugin.js:44:22) [ERROR] at webpack (C:\Users\Hp\Desktop\New folder (2)\gateway_upgrade\node_modules\webpack\lib\webpack.js:37:12) [ERROR] at processOptions (C:\Users\Hp\Desktop\New folder (2)\gateway_upgrade\node_modules\webpack-cli\bin\webpack.js:437:16) [ERROR] at yargs.parse (C:\Users\Hp\Desktop\New folder (2)\gateway_upgrade\node_modules\webpack-cli\bin\webpack.js:513:3) [ERROR] at Object.parse (C:\Users\Hp\Desktop\New folder (2)\gateway_upgrade\node_modules\webpack-cli\node_modules\yargs\yargs.js:552:18) [ERROR] at C:\Users\Hp\Desktop\New folder (2)\gateway_upgrade\node_modules\webpack-cli\bin\webpack.js:218:8 [ERROR] at Object.<anonymous> (C:\Users\Hp\Desktop\New folder (2)\gateway_upgrade\node_modules\webpack-cli\bin\webpack.js:515:3) [ERROR] at Module._compile (module.js:652:30) [ERROR] at Object.Module._extensions…js (module.js:663:10) [ERROR] at Module.load (module.js:565:32) [ERROR] at tryModuleLoad (module.js:505:12) [ERROR] at Function.Module._load (module.js:497:3) [ERROR] at Module.require (module.js:596:17) [ERROR] at require (internal/module.js:11:18) [ERROR] at Object.<anonymous> (C:\Users\Hp\Desktop\New folder (2)\gateway_upgrade\node_modules\webpack\bin\webpack.js:80:2) [ERROR] at Module._compile (module.js:652:30) [ERROR] at Object.Module._extensions…js (module.js:663:10) [ERROR] at Module.load (module.js:565:32) [ERROR] at tryModuleLoad (module.js:505:12) [ERROR] at Function.Module._load (module.js:497:3) [ERROR] at Function.Module.runMain (module.js:693:10) [ERROR] at startup (bootstrap_node.js:191:16) [ERROR] at bootstrap_node.js:612:3

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:11
  • Comments:7

github_iconTop GitHub Comments

10reactions
jacksonmj24commented, Oct 8, 2018

Any update on this ??

3reactions
opalampocommented, Feb 11, 2019

@chrisbateman Why are there no updates on this? It has been months that it has been an issue…

Read more comments on GitHub >

github_iconTop Results From Across the Web

DeprecationWarning: Tapable.plugin is deprecated. Use new ...
Use new API on .hooks instead (node:1024) DeprecationWarning: Tapable.apply is deprecated. Call apply on the plugin directly instead.
Read more >
Tapable.plugin is deprecated. Use new API on `.hooks` instead
I don't have extract-text-webpack-plugin installed but I'm still getting the deprecation warning: yarn list | grep text-web returns nothing.
Read more >
deprecationwarning: maintemplate.hooks.rendermanifest is ...
Call apply on the plugin directly instead DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead. Is just a warning: Here is...
Read more >
Tapable.plugin is deprecated. Use new API on `.hooks` instead
I am trying to upgrade my Webpack 4 to Webpack5. (Earlier it was Webpack2). On running node --trace-deprecation ...
Read more >
Tapable.plugin is deprecated. Use new API on .hooks instead ...
过程有点曲折,但是挺开心的,解决了这个问题。最后建议大家在升级的时候可以把对应的一些插件升级到最新,或者查看npm官网,升级到最近的版本。
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found