5***@qq.com
5***@qq.com
  • 发布:2020-05-18 21:03
  • 更新:2021-03-12 17:31
  • 阅读:1255

【报Bug】V3编译模式下,使用uni.createVideoContext(‘videoId’,this);报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: IOS手机

HBuilderX类型: 正式

HBuilderX版本号: 2.6.16

手机系统: iOS

手机系统版本号: iOS 13.4

手机厂商: 苹果

手机机型: iphoneXR

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

video绑定的id值,通过uni.createVideoContext(‘videoId’,this)方法获取video实例报错

预期结果:

没有报错信息

实际结果:

[Vue warn]: Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

bug描述:

[Vue warn]: Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
21:01:03.845 (found in <Root>) __ERROR

2020-05-18 21:03 负责人:无 分享
已邀请:
c***@163.com

c***@163.com

请问 问题解决了吗,我也是在子组件中使用报同样的错误

该问题目前已经被锁定, 无法添加新回复

  • 标题 / 粗斜体
  • 代码片段
  • 超链接 / 图片 / 视频
  • 列表 / 引用

文章内容较多时,可以用标题分段 :

## 大标题 
### 小标题

斜体 / 粗体 :

**粗体** 
*斜体*
***粗斜体***

代码片段 :

``` javascript
代码片段
```

超链接 :

[链接文字](链接地址) 例: [百度](http://www.baidu.com)

图片 :

![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)

视频 :

!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)

有序列表 :

1. 123
2. 123
3. 123

无序列表 :

- 123
- 123
- 123

引用 : ( 双回车后结束引用 )

> 引用内容
引用内容
引用内容