Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信小程序原生第三方组件中的 wxs 文件不会被复制到 dist 中 #3885

Closed
umaim opened this issue Jul 18, 2019 · 6 comments
Closed
Assignees
Labels
A-cli Area - CLI 相关 enhancement New feature or request

Comments

@umaim
Copy link
Contributor

umaim commented Jul 18, 2019

问题描述
微信小程序原生组件中的 wxs 文件不会被复制到 dist 中

复现步骤
按照文档中 引入第三方组件 之后,构建微信小程序时会漏掉原生组件 wxs 文件

临时解决方案:不得不在 config.copy 下手动写复制才行

期望行为
希望在 Taro 构建的时候,将原生组件中的 wxs 文件也复制到目标目录

QQ小程序的 qs 文件应该也同理,希望能一并解决

报错信息
没有

系统信息

  • 操作系统: Windows 10
  • Taro 版本 1.3.9
  • Node.js 版本 12
  • 报错平台 weapp
@taro-bot
Copy link

taro-bot bot commented Jul 18, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Jul 30, 2019

CC @yuche

@taro-bot taro-bot bot assigned yuche Jul 30, 2019
@yuche yuche removed their assignment Aug 1, 2019
@yuche yuche added CLI and removed 编译器 labels Aug 1, 2019
@taro-bot
Copy link

taro-bot bot commented Aug 1, 2019

CC @luckyadam

@pitipon
Copy link

pitipon commented Aug 28, 2019

me too .. I have this bug

@mihuartuanr
Copy link

mihuartuanr commented Aug 28, 2019

这个更新了么……这个问题应该算是基本功能的呢

@towry
Copy link

towry commented Apr 29, 2021

多久了怎么问题还在。。想按照官方教程使用 vant 库,但是 wxs 似乎拷贝不过去。。。

写到 copy 里面也不会拷贝。

写到 copy 里不生效的原因是 用了 taro 的配置 merge 方法,这个方法
对数组的处理是覆盖的,不是拼接的,有点坑。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area - CLI 相关 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants