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
importReact,{useEffect}from"react";import{$}from"@tarojs/extend";constIndex=()=>{useEffect(()=>{$(".box").height().then((res)=>console.log(res));},[]);return(<ViewclassName='box'>
test
</View>);}exportdefaultIndex;
期望结果
正确获取高度
实际结果
Cannot read property 'left' of null
TypeError: Cannot read property 'left' of null
相关平台
微信小程序
小程序基础库: 2.11.3
使用框架: React
复现步骤
期望结果
正确获取高度
实际结果
Cannot read property 'left' of null
TypeError: Cannot read property 'left' of null
环境信息
The text was updated successfully, but these errors were encountered: