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

【快应用】audio组件预览报错-must not use the reserved character #4317

Closed
Qiyu8 opened this issue Aug 28, 2019 · 2 comments
Closed

Comments

@Qiyu8
Copy link
Collaborator

Qiyu8 commented Aug 28, 2019

问题描述
Taro的TSX文件写法如下:

在taro build --type=quickapp转换成功之后,在快应用IDE中预览会报错 Error: Attribute 'name' of the imported component must not use the reserved character: audio Error: The file name must not contain reserved character: audio

复现步骤
1.编写正常的taro代码
2.执行taro build --type=quickapp
3.在快应用IDE中预览

期望行为
正常显示Audio组件

报错信息
Error: Attribute 'name' of the imported component must not use the reserved character: audio
Error: The file name must not contain reserved character: audio

系统信息
操作系统: Windows 10
Taro 版本 v1.3.15
Node.js 版本 v12.7.0
报错平台 weapp
补充信息
通过代码分析发现component-qa包中快应用audio的组件命名和快应用编译器的限制冲突了,因为快应用以后会支持audio组件,所以audio属于保留字,直接报错了

@taro-bot
Copy link

taro-bot bot commented Aug 28, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@luckyadam
Copy link
Member

已解决,感谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants