美文网首页
taro编译微信小程序之后报错“Component is not

taro编译微信小程序之后报错“Component is not

作者: 狂奔的大蜗牛 | 来源:发表于2021-04-17 18:43 被阅读0次

最近使用taro编译微信小程序后报错“Component is not found in path”,从网上查了一些资料发现是webpack打包的问题,生产环境打包过滤了一些本地的组件库,在webpack配置文件里加下下面的命令即可解决。

    webpackChain(chain) {
      chain.optimization.sideEffects(false)
    }

相关文章

网友评论

      本文标题:taro编译微信小程序之后报错“Component is not

      本文链接:https://www.haomeiwen.com/subject/lckplltx.html