0
点赞
收藏
分享

微信扫一扫

webpack5引入包报错Moudle not found : cant resolve ‘url‘ in “xxx“ BREAKING CHANGE: webpack < 5

无聊到学习 2022-02-22 阅读 184

问题

webpack5 在引入mqtt组件的时候报错:
Moudle not found : cant resolve ‘url’ in “xxx” BREAKING CHANGE: webpack < 5
在这里插入图片描述

解决办法

在 webpack.config.js中找到alias配置项
在这里插入图片描述

报错缺少什么就在这里加上配置即可

举报

相关推荐

0 条评论