You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createListComponent.js?587f:24Uncaught(inpromise)TypeError: _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.default.createSelectorQueryisnotafunctionatgetRectSize(createListComponent.js?587f:24)ateval(createListComponent.js?587f:132)atnewPromise(<anonymous>)
at List._getSizeUploadSync (createListComponent.js?587f:110)
at eval (createListComponent.js?587f:448)
相关平台
H5
浏览器版本: chrome 90
使用框架: React
复现步骤
按照官网示例使用VirtualList组件, 渲染后滚动内容,就会报错
_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.default.createSelectorQuery is not a function
期望结果
正常使用
实际结果
环境信息
补充信息
createListComponent.js
里import了Taro, H5版本这时候直接获取的api里是不包含createSelectorQuery
方法的。所以就报错了。之前版本不报错是因为没有调用过_getSizeUpload这个方法, 最近一次commit后,增加了代码,所以就报错了,增加代码如下:
The text was updated successfully, but these errors were encountered: