[Taro 小程序开发]TypeError: Cannot read property ‘elem’ of undefined
文章目录
使用了 Video 组件
<Video
src={courseData.try_source_url}
controls
initialTime='0'
objectFit='fill'
poster={courseData.cover_image}
/>
在维系开发者工具中调试时一直报
TypeError: Cannot read property 'elem' of undefined
at M (VM4401 WAService.js:2)
at VM4401 WAService.js:2
at VM4401 WAService.js:2
at n (VM4399 asdebug.js:1)
at e.exports.<anonymous> (VM4399 asdebug.js:1)
at VM4399 asdebug.js:1
at Array.forEach (<anonymous>)
at WebSocket._ws.onmessage (VM4399 asdebug.js:1)
网上搜出了一个解决方案 https://www.guobao0730.com/ty...
将当前的基础库版本是2.10.1 ,改为其他版本即可
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论