admin管理员组文章数量:1123146
Im encountering the following warnings while running my webpack dev Server:
(node:5456) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:5456) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Ive tried to resolve this issue by updating my webpack configuration to replace the deprecated options with the recommended setupMiddlewares option, but unfortunately, it doesn't seem to work.
I tried updating my webpack Dev Server config by swapping out the old onBeforeSetupMiddleware and onAfterSetupMiddleware options for the new setupMiddlewares option I was hoping this would get rid of those annoying deprecation warnings when I run the server But even after making the change the warnings are still popping up which makes me think I might've missed something or that the new setup isn't working right
本文标签: javascriptHow to Fix Webpack Dev Server Deprecation Warnings for Middleware OptionsStack Overflow
版权声明:本文标题:javascript - How to Fix Webpack Dev Server Deprecation Warnings for Middleware Options? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736548966a1944487.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论