cantonjs / wxapp-boilerplate

使用 webpack, babel, scss 开发的微信/支付宝小程序项目脚手架
377 stars 60 forks source link

引用微信官方拓展组件webpack报错 #67

Open ludejun opened 3 years ago

ludejun commented 3 years ago

wxapp-webpack-plugin 使用最新的0.19.0 在页面中使用官方拓展组件:yarn add @miniprogram-component-plus/tabs .json: { "usingComponents": { "user": "../../components/user/user", "mp-tabs": "@miniprogram-component-plus/tabs" }, "navigationStyle": "custom", "backgroundColor": "#fff" }

打包会报错:TypeError: Cannot read property 'replace' of undefined 我看有几个类似问题,在wxapp-webpack-plugin库中也有