uniapp 引入vant 2 报错 require is not defined

您所在的位置:网站首页 uniapp引用vant uniapp 引入vant 2 报错 require is not defined

uniapp 引入vant 2 报错 require is not defined

#uniapp 引入vant 2 报错 require is not defined| 来源: 网络整理| 查看: 265

Vue 2 项目,安装 Vant 2

npm i vant@latest-v2

main.js 导入Vant组件

import Vant from 'vant' Vue.use(Vant)

运行到浏览器报错: Uncaught ReferenceError: require is not defined at Module.qioP (chunk-vendors.js:52368:1) at webpack_require (index.js:854:30) at fn (index.js:151:20) at Object.GgBI (chunk-vendors.js:21582:17) at webpack_require (index.js:854:30) at fn (index.js:151:20) at Object.Feqt (chunk-vendors.js:19969:39) at __webpack_require__ (index.js:854:30) at fn (index.js:151:20) at eval (main.js:5:1)



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3