Html-webpack-plugin: [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.

Created on 16 Oct 2020  路  14Comments  路  Source: jantimon/html-webpack-plugin

Expected behaviour

When I use webpack 5, there are no warnings.

Current behaviour

When I use webpack 5, there are warnings!!!
(node:1652) [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_*.
at G:\SNWSsn-micro-front-web-project-templatenode_modules\html-webpack-plugin\index.js:280:49
at processTicksAndRejections (internal/process/task_queues.js:93:5)

Environment

webpack version: v5.1.2
Node.js version: v14.14.0
Operating System: Windows 10
npm: v6.14.8
html-webpack-plugin: v4.5.0

Config

no

Relevant Links

no

Additional context

no

Most helpful comment

[email protected] fixes the issue

All 14 comments

There is a related issue #1523

Can you please see if this is fixed with [email protected] ?
Please see also #1527

Can you please see if this is fixed with [email protected] ?
Please see also #1527

Thank you! I tried it, and then I turned it off.

Can you please see if this is fixed with [email protected] ?
Please see also #1527

There is still that warning!!!
image

Sorry it looks like the last release didn't include the full fix - can you please try once again with [email protected] ?

Sorry it looks like the last release didn't include the full fix - can you please try once again with [email protected] ?

OK.

Sorry it looks like the last release didn't include the full fix - can you please try once again with [email protected] ?

It's being tested. Wait for my good news!

[email protected] fixes the issue

Sorry it looks like the last release didn't include the full fix - can you please try once again with [email protected] ?

Yes, it did. thank you! The author's timely repair.

[email protected] fixes the issue

Yes, it did. thank you! The author's timely repair.

This issue will also be closed.

Sorry it looks like the last release didn't include the full fix - can you please try once again with [email protected] ?

Looking forward to the update of the official version.

So, when are you planning to release the html-webpack-plugin@5 version?

[email protected] has released!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lonelyclick picture lonelyclick  路  3Comments

klinki picture klinki  路  3Comments

meleyal picture meleyal  路  3Comments

mmjamal picture mmjamal  路  3Comments

yyx990803 picture yyx990803  路  4Comments