异常:Property “$scopedSlots“ was accessed during render but is not defined on instance.

大致意思 属性xxx 过去 在渲染访问期间,但是没有实例定义

我的报错定位到使用拖拽组件 ,按照api 配置一使用改组建就报错具体报错如下

异常:Property “$scopedSlots“ was accessed during render but is not defined on instance._第1张图片

具体定位到的问题是

异常:Property “$scopedSlots“ was accessed during render but is not defined on instance._第2张图片
意思就是没有初始化, 排除了main 的注册过程,已经使用了这个vuedraggable 组件

里面传入的值如图所示已经有值

异常:Property “$scopedSlots“ was accessed during render but is not defined on instance._第3张图片
日志已经打印出来了val。既然如此,考虑到组建问题,在网上搜索关于该组建的问题,得到结论如下

异常:Property “$scopedSlots“ was accessed during render but is not defined on instance._第4张图片

vue 3 需要使用高版本 “vuedraggable”: “^4.1.0”
同时不可是dev 包里面

你可能感兴趣的:(异常,vue.js)