《Webpack 报错》webpack < 5 used to include polyfills for node.js core modules by default
·
报错:webpack < 5 used to include polyfills for node.js core modules by default.
工作时,集成vue-element-template 框架嵌入 vue2.x 项目中时,报错。应该是当时的webpack 版本与现在有差异。
-
方法一:其它参考,可行~
参考 https://blog.csdn.net/jiangzhanweiabc/article/details/125766728
-
方法二:第二次出现时,发现的解决方案,可行~
安装插件
npm install path-browserify修改文件
src\layout\components\Sidebar\SidebarItem.vue,替换为import path from 'path-browserify'

更多推荐
所有评论(0)