
image.png
解決辦法
一.安裝vant
1.通過npm安裝
npm i @vant/weapp -S --production
npm i vant-weapp -S --production(安裝0.x版本)
2.通過yarn安裝
yarn add @vant/weapp --production
二.在微信小程序工具中構(gòu)建npm包
1.選擇工具 構(gòu)建npm 勾選使用npm模塊

image.png
一.安裝vant
1.通過npm安裝
npm i @vant/weapp -S --production
npm i vant-weapp -S --production(安裝0.x版本)
2.通過yarn安裝
yarn add @vant/weapp --production
二.在微信小程序工具中構(gòu)建npm包
1.選擇工具 構(gòu)建npm 勾選使用npm模塊