[Taro 小程序开发]TypeError: Cannot read property ‘elem’ of undefined

使用了 Video 组件ide

<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...post

将当前的基础库版本是2.10.1 ,改成其余版本便可url

相关文章
相关标签/搜索