-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Tapable.plugin is deprecated. Use new API on .hooks
instead
#6568
Comments
Did you upgrade the extract-text-webpack-plugin to latest version? |
@sokra To which version? I'm using v3.0.2 which is -- according to this page -- the latest available stable version. So from my point of view, yes, I'm using the latest version. fyi: I've just updated the PR to set the version explicitly, see https://github.com/julmot/form-components/pull/9/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R38 |
Just got the same issue directly after installing webpack webpack 4.0.0 |
I think you have to install As you can see in the release notes under Code Refactoring: |
Can't imagine that relaying on alpha releases is intended. (haven't checked if it works) |
using v4.0.0-alpha.0 worked for me |
@sokra If using v4.0.0-alpha.0 works (can't confirm currently), is this the way to go? |
I'm no longer using |
|
I had the same problem.but resolved it using version 3.11.0 |
@sokra What's the solution in this regard? |
@julmot Try with |
extract-text-webpack-plugin |
Works with v4.0.0-alpha.0 |
No Works with extract-text-webpack-plugin v4.0.0-beta.0 |
Doesn't work for me either, just gives a different error message:
|
@julmot Could you please submit an issue for that error? |
Hello guys, i've found the way to resolve this problem. You can check my config here, hope it will help you. |
I'm sure using |
|
@montogeek The issue that occured afterwards seems to be covered in: bholloway/resolve-url-loader#79 @sokra It's annoying that you're ignoring my questions. |
In order to use |
@ooflorent I assume the reason there are so many people reporting this as an error and not just a notice is that something else is failing silently, and without anywhere else to look people believe this to be the error. I for one cannot get Webpack 4 working, but no error messages. |
@slapbox try to comment plugins and loader step by step |
I'm still getting:
with:
same with or without |
Also having same issue:
Also getting
It's worth mentioning that I was using symfony 4 we-encore installation today. And also I was installing same thing about 5 day ago without any of those issues. |
I don't have extract-text-webpack-plugin installed but I'm still getting the deprecation warning: edit: running with |
I have a same error too. before "devDependencies": {
"css-loader": "^0.28.10",
"extract-text-webpack-plugin": "^3.0.2",
"gulp": "^3.8.8",
"node-sass": "^4.7.2",
"sass-loader": "^6.0.7",
"style-loader": "^0.20.3",
"webpack": "^4.1.1",
"webpack-cli": "^2.0.12"
}, after and I've solve it. |
"devDependencies": { Still get the error |
For everyone commenting here about using the latest version of X and still having the notices: Please run webpack using If you were doing this:
Then please try this:
If the stack trace shows that |
node --trace-deprecation ./node_modules/.bin/webpack --config is requiered
So friendly-errors-webpack-plugin is the source of this warning. |
@MartinX3 I've submitted a PR (see geowarin/friendly-errors-webpack-plugin#63) |
Sorry to say, migrate to Webpack 4 now, sucks!!! |
I'm no longer using extract-text-webpack-plugin anywhere |
I had the same problem and the deprecation notice is linked to I checked the version installed via npm:
I wanted to use the why function of yarn and I was surprised to not have the
Seems like npm is not installing the latest dependency for |
@Fenntasy |
Well...
To be sure, I tried |
@Fenntasy Delete the node_modules folder and try installing again |
I did that between every try ^^'. I'm not saying that because I have the problem, just pointing to a potential way of discovering the problem or a way out (using yarn). |
I have tried all the solutions above and still get the same error. I even went as far as removing all plugins from my config file and got the same error.
What could I possibly be doing wrong? |
@kinsomicrote please open an issue to help us diagnose the problem. |
For anyone still reading this and struggling with However, it seems that See this issue for reference. |
Just remember, mini-css-extract-plugin requires webpack >= 4.1 |
Sean Larkin just said in his blog post about the release of Webpack 4 that it won't support ExtractTextPlugin anymore. CSS files will be simply added to the entry points for bundling (which is way better). |
extract-text-webpack-plugin@next works for me |
I have used |
Same error with Fixed with |
Here is a quick summary for everyone encountering this message. What is this message?webpack 4 is using a new plugin system and deprecates the previous APIs. There are 2 new warnings:
These are warnings. They are outputted to the console to warn our users that they are using an outdated API and should migrate to the newest. How bad are these warnings?They are only a textual information, not errors. If you see a How to get rid of them?Update your webpack dependencies (webpack, loaders, plugins, …). If all your dependencies have done the migration, the warnings should be gone. If they are not and you can help us and the plugin authors to fix this!
If you absolutely want to remove them, you can disable the deprecation notices within your configuration by adding the following statement: // Ignore all deprecations and hope that nothing will silently break in the future.
process.noDeprecation = true; |
Do you want to request a feature or report a bug? Bug
What is the current behavior?
https://travis-ci.org/julmot/form-components/builds/346048668#L4063-L4081
If the current behavior is a bug, please provide the steps to reproduce.
Run the build of this repository which uses these settings. PR: julkue/form-components#9
What is the expected behavior?
It shouldn't fail or provide a meaningful message that helps resolving the issue. The current message looks like an internal error.
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
webpack v4
Win10
node v6.11.3
The text was updated successfully, but these errors were encountered: