speed-measure-webpack-plugin
speed-measure-webpack-plugin copied to clipboard
Deprecation Warning for Compilation.hooks.normalModuleLoader
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;
}, {});
+1
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.
This could probably be closed in favor of #149 which includes other v5-specific concerns. Official support for Webpack 5 still isn't quite here yet.
any news on this?
DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
same question at 2022.2.26
Same Here!
收到啦,谢谢
Still an issue with me, Webpack ^5.73.0 and using speed-measure-webpack-plugin ^1.5.0
Any updates on this?
2022-10-27 还在出现这个问题,"speed-measure-webpack-plugin": "^1.5.0", webpack ^5
收到啦,谢谢
Still an issue with me, Webpack 5.75.0 and using speed-measure-webpack-plugin 1.5.0
(node:43571) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
(Use node --trace-deprecation ...
to show where the warning was created)
Same issue. getting stuck here when trying to build "react-scripts": "^5.0.1", "react": "^17.0.2", "react-app-rewired": "^2.1.8",
(node:43571) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader (Use
node --trace-deprecation ...
to show where the warning was created)Same issue. getting stuck here when trying to build "react-scripts": "^5.0.1", "react": "^17.0.2", "react-app-rewired": "^2.1.8",
same to me.
(node:1012) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader (Use
node --trace-deprecation ...
to show where the warning was created)
Has this been resolved?
I recently upgraded React 16 to 18, and now I am getting this warning every time I tried to run npm run build DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
Has anyone found a fix for this warning?