小程序引入vant报错

引入vant 的时候 npm构建之后 报错

VM6419:5 ./miniprogram_npm/[email protected]@vant-weapp/action-sheet/index.wxml

../wxs/utils.wxs not found from ./miniprogram_npm/[email protected]@vant-weapp/action-sheet/index.wxml

> 1 |

    | ^

  2 | 

  3 |

只需要把miniprogram_npm/vant-weapp里的组件文件夹都删除,

之后再https://github.com/youzan/vant-weapp下载一份vant, 将dist文件夹(vant-weapp-dev\vant-weapp-dev\dist)中的文件复制到 miniprogram_npm/vant-weapp(即下载一份vant,之后替换掉项目中的文件)之后保存解决

来自:http://www.imooc.com/qadetail/314242?t=493667

你可能感兴趣的:(小程序引入vant报错)