vant-weapp报错module "vant-weapp/dist/goods-action-icon/index.js" is not defined
来源:7-3 vant-weapp 组件库集成
chicypaul
2020-05-06
1.按照官网安装:npm i @vant/weapp -S --production
2.webpack.base.conf.js的配置如下
3.app.json引用:
“usingComponents”: {
“van-button”: “@vant/weapp/dist/button/index”
}
4.微信开发工具中有vant-weapp的目录
但是报错如下
写回答
1回答
-
扬_灵
2020-05-06
同学你好,这个是因为van的组件引入错误,是这种形式的引用“van-button”: “/vant/weapp/dist/button/index”
032020-05-07
相似问题