-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated. #1523
Comments
Can you please see if this is fixed with html-webpack-plugin@5.0.0-alpha.2 ? |
It looks good in the latest |
Thanks for testing 👍 |
[DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated. |
Same here. |
Can you please try html-webpack-plugin@5.0.0-alpha.6? |
Alpha.6 seems to have removed the warning for me. |
same here, no warning with alpha 6 |
thanks for the testing feedback 👍 |
…l-webpack-plugin to 7.0.0-alpha.1 jantimon/html-webpack-plugin#1523
…ack-plugin to 7.0.0-alpha.1 jantimon/html-webpack-plugin#1523
|
Which version did you use? Can you please try https://www.npmjs.com/package/html-webpack-plugin/v/5.0.0-alpha.9 |
5.0.0-alpha.7 is Ok, no warning. But 5.0.0-alpha.9 has this warning. |
I encounter the same problem~ also version 5.0.0-alpha.9 |
|
Thanks for your feedback - switched to EntryPlugin for html-webpack-plugin/v/5.0.0-alpha.10 |
thanks for your works, but still have depreciation warnings with the latest versions [DEP_WEBPACK_SINGLE_ENTRY_PLUGIN] DeprecationWarning: SingleEntryPlugin was renamed to EntryPlugin
[DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*. installed packages{
"html-webpack-plugin": "^5.0.0-alpha.10",
"webpack": "^5.4.0"
} |
@amirHossein-Ebrahimi it looks like you using the wrong html-webpack-plugin version - alpha 10 has no SingleEntryPlugin but only EntryPlugin: https://unpkg.com/html-webpack-plugin@5.0.0-alpha.10/lib/child-compiler.js |
@jantimon yarn.lock is updated to the specified version |
@jantimon you were right in the thank you 🙏 |
@surielmx it's hard to tell as you have sooo many plugins and npm packages which could also cause this issue - can you try to remove all which are unrelated for the html generation and try again e.g. 'webpack-merge', 'babel', 'eslint', 'file-loader', 'open'.... You can also try: |
@surielmx I guess it might be related to the output. Try something like:
|
Hi @jantimon! I have issues as well (webpack 5). Here is my toy-app (dev branch) with
Any idea what's going wrong? As you can see, I have many plugins... but I think It's coming from HtmlWebpackPlugin cause in toy-app (master) with With 4.5.0 the build script is fine (just the deprecation warning), but when I try to serve the app with |
@mauriziocescon no you are using the CopyWebpackPlugin to generate another index.html Webpack doesn't why you want to generate two files with the same filename and therefore it shows this error |
Thank you @mauriziocescon, |
Great, thanks a lot @jantimon, it works fine! Indeed, you are right... I created the config some time ago with webpack 4. Thanks!
|
…l-webpack-plugin to 7.0.0-alpha.1 jantimon/html-webpack-plugin#1523
…ack-plugin to 7.0.0-alpha.1 jantimon/html-webpack-plugin#1523
…l-webpack-plugin to 7.0.0-alpha.1 jantimon/html-webpack-plugin#1523
…ack-plugin to 7.0.0-alpha.1 jantimon/html-webpack-plugin#1523
This bug seems to be resolved - any other bugs are probably caused by other plugins. |
"webpack": "^5.0.0-rc.3",
The text was updated successfully, but these errors were encountered: