维护项目时,遇到错误如下:
[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. 的解决相关推荐

  1. [Vue warn] Failed to resolve component xxx

    bug内容: 原文: [Vue warn]: Failed to resolve component: test If this is a native custom element, make su ...

  2. [Vue warn]: Failed to resolve component: xxx

    bug内容: 原文: [Vue warn]: Failed to resolve component: test If this is a native custom element, make su ...

  3. vue3出现此警告信息:[Vue warn]: Failed to resolve component: dpan

    警告内容: runtime-core.esm-bundler.js:6870 [Vue warn]: Failed to resolve component: dpan 原因: 问题出现的原因是因为, ...

  4. [Vue warn]: Failed to resolve component:XXX

    [问题描述] [Vue warn]: Failed to resolve component: sidebar-item If this is a native custom element, mak ...

  5. Vue3.0使用Element Plus组件报错[Vue warn]: Failed to resolve component: `el-XXXX` If this is a native custo

    文章目录 报错截图 一.问题描述 二.报错信息格式 三.报错原因 报错截图 一.问题描述 我的技术栈:Vue3+TypeScript+Vite+Element Plus 我的报错:Vue3 项目使用 ...

  6. Could not resolve host: 'localhost 报错解决办法

    Could not resolve host: 'localhost 报错解决办法 面向Windows的: 零基础的我一直卡在这一步骤下: 首先要先在Windows安装curl:安装方式参考:http ...

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

  8. cxf webservice:异常SOAPFaultException: Unexpected wrapper element found解决

    cxf webservice:异常SOAPFaultException: Unexpected wrapper element found解决 参考文章: (1)cxf webservice:异常SO ...

  9. npm 安装yeoman时出现npm WARN deprecated npmconf@2.1.2报错...解决办法

    npm 安装yeoman时出现npm WARN deprecated npmconf@2.1.2报错-解决办法 我是nodeJS 小白,在用npm命令安装yeoman是,给出了这样的错误提示: $ n ...

  10. [log]Can't resolve 'sass-loader' in...错误的解决办法

    Can't resolve 'sass-loader' in...错误的解决办法 Module not found: Error: Can't resolve 'sass-loader' in *** ...

最新文章

  1. 12c oracle 修改内存_Oracle12c中性能优化功能增强新特性之重大突破——内存列存储新特性...
  2. 开发日记-20190604 关键词 读书笔记《鸟哥的Linux私房菜-基础学习篇》
  3. hdfs du命令是算的一份数据
  4. Android系统中的任意文件读写方法
  5. 定义一个计算字符串有效长度的_一个正方形的小抽屉柜,根据设计草图计算出所需四片木板的长度...
  6. VTK:图片之ImageStencil
  7. 路由守卫-vue切换路由登录判断、条件判断
  8. LeetCode 932. 漂亮数组(分治递归/循环)
  9. 腾讯三面:40亿个QQ号码如何去重?
  10. 【转】前端的BFC、IFC、GFC和FFC
  11. 如何使用 python glob model
  12. PSR-4——新鲜出炉的PHP规范
  13. 五种I/O模型和Java NIO源码分析
  14. std string与线程安全_是std :: regex线程安全吗?
  15. (2)机械臂Simscape建模:模型导入MATLAB
  16. 三菱plc c语言模块,FX5-80SSC-S 三菱PLC简易运动控制器模块
  17. 饥饿的小易 小易总是感觉饥饿,所以作为章鱼的小易经常出去寻找贝壳吃。最开始小易在一个初始位置x_0。对于小易所处的当前位置x,他只能通过神秘的力量移动到 4 * x + 3或者8 * x + 7。因
  18. PDF怎么转换成图片?这两种转换方法快速转换
  19. 网站1周内自动登录功能实现
  20. 如何入驻832优选平台

热门文章

  1. 【VSCode PlatformIO】 STC单片机开发头文件制作与添加方法
  2. arping 本机出现 timeout 问题
  3. Python语音基础操作--5.4小波分解
  4. CCNA考试题库中英文翻译版及答案12
  5. c# 对一个数组进行随机排序
  6. php下获取客户端IP
  7. 新版谷歌浏览器80.0永久开启Flash
  8. [笔记]Windows核心编程《十七》内存映射文件
  9. 双向循环链表的C++实现
  10. ROS下使用摄像头进行机器人巡线功能(附带功能包链接)