Deprecation Warning for Compilation.hooks.normalModuleLoader

See original GitHub issue

Getting 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:open
  • Created 3 years ago
  • Reactions:21
  • Comments:12

github_iconTop GitHub Comments

9reactions
pumanocommented, Sep 20, 2021

any news on this?

5reactions
ermuzcommented, Feb 8, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found