-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
usingComponents 引用无效 #9038
Comments
@xuxiaoxiao312 复现的操作步骤再描述得清晰一些 |
麻烦看一下🙇♀️ |
@xuxiaoxiao312 试了 taro-sample-weapp 这个包,Taro 3.2.0,没有复现。重启一下开发者工具试试吧,同样的代码每次编译的结果应该都是一样的。 如果还有问题,提供一下完整可复现的 demo 吧。 |
我碰到的问题是在 pages/index/index.config.ts配置的usingComponents无效,在其他页面配置usingComponents是正常的,我把文件夹名称改成home如pages/home/index.config.ts后就正常了,不知道啥原因,难道pages/index比较特殊? |
@tianxing0923 这种情况没遇到过,升级到最新版本再试试,如果还有问题可以新开一个 issue,附上完整可复现的 demo。 |
相关平台
微信小程序
小程序基础库: 2.1.5.0
使用框架: React
复现步骤
taro 3.2.0引入自定义组件后重新编译下自定义节点就无效了。直接拷贝的taro-sample-weapp的index页面,拷贝过来后自动编译后是有正确的节点。npm run dev:weapp 重新编译后节点内容消失。
此处是自动编译后的页面节点情况:

此处是重新编译后的页面节点情况

期望结果
正确引入自定义组件
实际结果
无法正确引入自定义组件
环境信息
The text was updated successfully, but these errors were encountered: