小程序,引入npm包后构建包,构建完成报错

  1. npm init 2. npm install xxx 3.工具=> 构建npm
image.png

image.png

解决:

全局搜索 componentGenerics

image.png
//index.json
{
    "component": true,
    "usingComponents": {},
    "componentGenerics": {
      "l-water-flow-item": "true"
    }
  }

你可能感兴趣的:(小程序,引入npm包后构建包,构建完成报错)