Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack 4.5 produces warning about Tapable.plugin is deprecated #26

Open
bigfish opened this issue Apr 6, 2018 · 6 comments
Open

webpack 4.5 produces warning about Tapable.plugin is deprecated #26

bigfish opened this issue Apr 6, 2018 · 6 comments

Comments

@bigfish
Copy link

bigfish commented Apr 6, 2018

using 1.0.7 of this plugin, I get this warning in build output

10% building modules 3/3 modules 0 active(node:86959) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
at ModernizrPlugin.apply (/Volumes/devhd/dev/securityportal/sp-client/node_modules/modernizr-webpack-plugin/index.js:105:12)
at webpack (/Volumes/devhd/dev/securityportal/sp-client/node_modules/webpack/lib/webpack.js:37:12)
at startDevServer (/Volumes/devhd/dev/securityportal/sp-client/node_modules/webpack-dev-server/bin/webpack-dev-server.js:379:16)
at processOptions (/Volumes/devhd/dev/securityportal/sp-client/node_modules/webpack-dev-server/bin/webpack-dev-server.js:361:5)
at Object. (/Volumes/devhd/dev/securityportal/sp-client/node_modules/webpack-dev-server/bin/webpack-dev-server.js:504:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3

@ezmiller
Copy link

ezmiller commented Apr 20, 2018

I'm also seeing this, after an upgrade to [email protected]. When I ran node --trace-deprecation ./node_modules/webpack-cli/bin/webpack.js, I got:

(node:55735) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
    at ModernizrPlugin.apply (/Users/ethan/Projects/motologic/enzo/client/node_modules/modernizr-webpack-plugin/index.js:105:12)
    at webpack (/Users/ethan/Projects/motologic/enzo/client/node_modules/webpack/lib/webpack.js:37:12)
    at processOptions (/Users/ethan/Projects/motologic/enzo/client/node_modules/webpack-cli/bin/webpack.js:436:16)
    at yargs.parse.err (/Users/ethan/Projects/motologic/enzo/client/node_modules/webpack-cli/bin/webpack.js:512:3)
    at Object.parse (/Users/ethan/Projects/motologic/enzo/client/node_modules/webpack-cli/node_modules/yargs/yargs.js:552:18)
    at /Users/ethan/Projects/motologic/enzo/client/node_modules/webpack-cli/bin/webpack.js:217:8
    at Object.<anonymous> (/Users/ethan/Projects/motologic/enzo/client/node_modules/webpack-cli/bin/webpack.js:514:3)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

@andrew-luminal
Copy link

Also seeing this, would love to get it removed.

@sergeymorkovkin
Copy link

Confirm.

@chriswburke
Copy link

I feel like the issue is coming from 'html-webpack-plugin'

@lebdimaa
Copy link

lebdimaa commented Aug 20, 2018

capture
The issue still exists!

@neutraali
Copy link

modernizr-webpack-plugin
Confirmed - Is this project still alive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants