[BScroll warn]: Can not resolve the wrapper DOM. 的解决
维护项目时,遇到错误如下:
[BScroll warn]: Can not resolve the wrapper DOM. Vue better-scroll
[Vue warn]: Error in mounted hook: “TypeError: Cannot read property ‘children’ of undefined”
问题分析:
BScroll 未获得到 DOM
解决办法:
1.找到使用BScroll 的地方,
项目中使用的如下:
import BScroll from 'bscroll';initScroll() {let that = this;// 表格头部右侧横向滚动条var headerRightDom = document.querySelector('.right-header-table');
}
2.找到“right-header-table”的节点
<div v-if=""><div class="right-header-table"></div>
</div>
问题就出在v-if 修改为v-show,报错解决。
[BScroll warn]: Can not resolve the wrapper DOM. 的解决相关推荐
- [Vue warn] Failed to resolve component xxx
bug内容: 原文: [Vue warn]: Failed to resolve component: test If this is a native custom element, make su ...
- [Vue warn]: Failed to resolve component: xxx
bug内容: 原文: [Vue warn]: Failed to resolve component: test If this is a native custom element, make su ...
- vue3出现此警告信息:[Vue warn]: Failed to resolve component: dpan
警告内容: runtime-core.esm-bundler.js:6870 [Vue warn]: Failed to resolve component: dpan 原因: 问题出现的原因是因为, ...
- [Vue warn]: Failed to resolve component:XXX
[问题描述] [Vue warn]: Failed to resolve component: sidebar-item If this is a native custom element, mak ...
- Vue3.0使用Element Plus组件报错[Vue warn]: Failed to resolve component: `el-XXXX` If this is a native custo
文章目录 报错截图 一.问题描述 二.报错信息格式 三.报错原因 报错截图 一.问题描述 我的技术栈:Vue3+TypeScript+Vite+Element Plus 我的报错:Vue3 项目使用 ...
- Could not resolve host: 'localhost 报错解决办法
Could not resolve host: 'localhost 报错解决办法 面向Windows的: 零基础的我一直卡在这一步骤下: 首先要先在Windows安装curl:安装方式参考:http ...
- mycat重启报错Failed to connect to the Wrapper at port解决方法
mycat重启报错Failed to connect to the Wrapper at port解决方法 参考文章: (1)mycat重启报错Failed to connect to the Wra ...
- cxf webservice:异常SOAPFaultException: Unexpected wrapper element found解决
cxf webservice:异常SOAPFaultException: Unexpected wrapper element found解决 参考文章: (1)cxf webservice:异常SO ...
- npm 安装yeoman时出现npm WARN deprecated npmconf@2.1.2报错...解决办法
npm 安装yeoman时出现npm WARN deprecated npmconf@2.1.2报错-解决办法 我是nodeJS 小白,在用npm命令安装yeoman是,给出了这样的错误提示: $ n ...
- [log]Can't resolve 'sass-loader' in...错误的解决办法
Can't resolve 'sass-loader' in...错误的解决办法 Module not found: Error: Can't resolve 'sass-loader' in *** ...
最新文章
- 12c oracle 修改内存_Oracle12c中性能优化功能增强新特性之重大突破——内存列存储新特性...
- 开发日记-20190604 关键词 读书笔记《鸟哥的Linux私房菜-基础学习篇》
- hdfs du命令是算的一份数据
- Android系统中的任意文件读写方法
- 定义一个计算字符串有效长度的_一个正方形的小抽屉柜,根据设计草图计算出所需四片木板的长度...
- VTK:图片之ImageStencil
- 路由守卫-vue切换路由登录判断、条件判断
- LeetCode 932. 漂亮数组(分治递归/循环)
- 腾讯三面:40亿个QQ号码如何去重?
- 【转】前端的BFC、IFC、GFC和FFC
- 如何使用 python glob model
- PSR-4——新鲜出炉的PHP规范
- 五种I/O模型和Java NIO源码分析
- std string与线程安全_是std :: regex线程安全吗?
- (2)机械臂Simscape建模:模型导入MATLAB
- 三菱plc c语言模块,FX5-80SSC-S 三菱PLC简易运动控制器模块
- 饥饿的小易 小易总是感觉饥饿,所以作为章鱼的小易经常出去寻找贝壳吃。最开始小易在一个初始位置x_0。对于小易所处的当前位置x,他只能通过神秘的力量移动到 4 * x + 3或者8 * x + 7。因
- PDF怎么转换成图片?这两种转换方法快速转换
- 网站1周内自动登录功能实现
- 如何入驻832优选平台