在自定义组件中createSelectorQuery获取不到节点?

发布于 5 年前作者 wxiang779 次浏览最后编辑 5 年前来自 issues
t调试基础库:2.17.0
s使用框架:taro3.0
d代码及报错如下:

报错提示:An SelectorQuery call is ignored because no proper page or component is found. Please considering using `SelectorQuery.in` to specify a proper one.

3 回复
guiyingchen
guiyingchen1 楼4 年前

你这是在组件内调用方法还是组件外部?

bmao
bmao2 楼4 年前

请移步taro官方社区

mengyong
mengyong3 楼4 个月前

:٩(๑•ㅂ•)۶