-
Notifications
You must be signed in to change notification settings - Fork 79
Deprecation Warning for Compilation.hooks.normalModuleLoader #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
Since webpack v5 normalModuleLoader hook was removedhttps://webpack.js.org/api/compilation-hooks/#normalmoduleloader. |
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 Same issue. getting stuck here when trying to build |
same to me.
|
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? |
Step 1: Identify where the issue is Look into your custom CSS files (especially the ones in src/index.css, or any imported component CSS). Look for something like this: background: url("/path/to/image"); or content: "/"; If it's something like this, it's often not properly escaped for the build. Try modifying lines like: content: "/"; to content: "/"; Or better yet, if it's a url(), ensure it uses a valid path and isn't causing the issue: background-image: url("./assets/bg.jpg"); /* or wherever your image is */ for me it works as per gpt said |
收到啦,谢谢
|
Uh oh!
There was an error while loading. Please reload this page.
Getting webpack deprecation warning on v1.3.3 & webpack v5.0.0-beta.17:
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
?The text was updated successfully, but these errors were encountered: