Deprecation Warning for Compilation.hooks.normalModuleLoader
See original GitHub issueGetting webpack deprecation warning on v1.3.3 & webpack v5.0.0-beta.17:
[DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
It’s occuring right here: node_modules/speed-measure-webpack-plugin/WrappedPlugin/index.js:148:19
Maybe because every available webpack hook is being wrapped here: node_modules/speed-measure-webpack-plugin/WrappedPlugin/index.js:147:38?
const wrapped = Object.keys(hooks).reduce((acc, method) => {
acc[method] = genProxy(method);
return acc;
}, {});
Issue Analytics
- State:
- Created 3 years ago
- Reactions:21
- Comments:12
Top Results From Across the Web
deprecationwarning: compilation.hooks.normalmoduleloader ...
1 I use the npm package service-worker-loader. I get this waring when building the project: node:25260) [DEP_WEBPACK_COMPILATION_CACHE] DeprecationWarning: ...
Read more >How to fix deprecation warning for Chunk.modulesIterable?
I had this issue because I was using compilation.hooks.optimizeChunks to iterate through all modules in the compilation.
Read more >Compilation Hooks | webpack
warning. additionalChunkAssets is deprecated (use the Compilation.hook.processAssets instead and ... Since webpack v5 normalModuleLoader hook was removed.
Read more >2020428 – Dynamic Plugins: Deprecation warning building ...
Summary: Dynamic Plugins: Deprecation warning building plugin ... Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
Read more >ENG: Monitor and fix egecases of webpack build for javascripts
normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader (node:77) [DEP_WEBPACK_MAIN_TEMPLATE_RENDER_MANIFEST] DeprecationWarning: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
any news on this?
Since webpack v5 normalModuleLoader hook was removedhttps://webpack.js.org/api/compilation-hooks/#normalmoduleloader. The smp registered the hook at therehttps://github.com/stephencookdev/speed-measure-webpack-plugin/blob/b5ff09e699416fe336d1df1896af5c50e6596deb/index.js#L159.It’s seem like the author hadn’t adapted to the Webpack v5 very well,although the official support of webpack v5 has been announced in the v1.4.2 version.