jantimon/html-webpack-plugin

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

First-Jim opened this issue · 4 comments

HI,thanks for your works, but still have depreciation warnings with the latest versions.

Current behaviour 💣

yarn run start

✔ Webpack
Compiled successfully in 53.73s

Listening on port 8080 !
[webpack-dev-middleware] wait until bundle finished: /_webpack_hmr
(node:3096) [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
*.
(Use node --trace-deprecation ... to show where the warning was created)

Environment 🖥

yarn:v1.22.18
node:v16.14.0
webpack:v5.77.0
html-webpack-plugin:5.5.0

Please run npm ls html-webpack-plugin and npm ls webpack

Please run npm ls html-webpack-plugin and npm ls webpack

image

"less": "^3.9.0", "less-loader": "^5.0.0", What is the reason for this error? Do you know?Thanks for your works.

Looks like you have old version of less-loader, also please don't use thread-loader, replace it on the the cache option

Looks like you have old version of less-loader, also please don't use thread-loader, replace it on the the cache option

ok, Thanks for your works.