微信小程序出现miniprogram/app.json: [“usingComponents“][“van-button“]:““@vant/weapp/button/index”未找到

  1. 在用微信小程序开发过程中引入vant过程中,导入button组件出现错误。
  2. 按着文档各种配置都配了。如:
    1. project.config.json的配置。
    2. 构建。
    3. 包括没有npm构建按钮。
  3. 最后发现了问题,我的项目是ts项目,所以需要引入ts的配置才能使用(官网的配置)。
  4. 成功。

猜你喜欢

转载自blog.csdn.net/weixin_38441229/article/details/132583126