vue3在使用keep-alive出现切换页面报错

vue-router.esm-bundler.js?f6c4:3295 TypeError: parentComponent.ctx.deactivate is not a functionat unmount (runtime-core.esm-bundler.js?9e79:4686)at patch (runtime-core.esm-bundler.js?9e79:3664)at Object.sharedContext.activate (runtime-core.esm-bundler.js?9e79:1708)at processComponent (runtime-core.esm-bundler.js?9e79:4097)at patch (runtime-core.esm-bundler.js?9e79:3695)at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js?9e79:4310)at ReactiveEffect.run (reactivity.esm-bundler.js?0a2b:160)at updateComponent (runtime-core.esm-bundler.js?9e79:4171)at processComponent (runtime-core.esm-bundler.js?9e79:4104)at patch (runtime-core.esm-bundler.js?9e79:3695)

在网上搜到的bug解释

大佬链接文档

解决办法

在keep-alive、component上设置key进行排序

TypeError parentComponent.ctx.deactivate is not a function相关推荐

  1. Uncaught TypeError: this.canvas.getContext is not a function

    /***************************************************************************** Uncaught TypeError: t ...

  2. TypeError:Joi.validate is not a function 解决办法

    TypeError:Joi.validate is not a function 解决办法 报错如下 解决办法 把最新版本的joi卸载,下以前的joi版本 //卸载当前目录下的joi node uni ...

  3. [Vue warn]: Error in render: TypeError: _self.$scopedSlots.default is not a function 错误解决

    出现[[Vue warn]: Error in render: "TypeError: _self.$scopedSlots.default is not a function"] ...

  4. TypeError: this.$refs.resetFields is not a function解决方法

    在使用element-ui进行vue项目开发过程中遇到TypeError: this.$refs.resetFields is not a function的报错,就像下面这样: 原因:在表单验证时关 ...

  5. jquery-1.8.3中的BUG typeError:elem.nodeName.toLowerCase is not a function

    原文链接:https://blog.csdn.net/wttyzy/article/details/8565510 ie和firefox一直遇到这个问题 ----------------------- ...

  6. 常见报错——Uncaught TypeError: document.getElementsByClassName(...).addEventListener is not a function

    在进行原生的前端开发的时候遇到的问题: Uncaught TypeError: document.getElementsByClassName(...).addEventListener is not ...

  7. uni-app运行出现TypeError: (0 , _shop.default) is not a function报错的解决方式

    示例 TypeError: (0 , _shop.default) is not a function at VueComponent.addshop (detaail.js?t=wechat& ...

  8. web3@0.20.1 在依据abi创建智能合约的时候报错 TypeError: web3.eth.contract is not a function

    前面的代码不变 var web3 = new Web3(new Web3.providers.HttpProvider("Http://localhost:8545")); var ...

  9. vue.runtime.esm.js:1737 TypeError: _self.$scopedSlots.default is not a function

    报错 _self.$scopedSlots.default is not a function , 原因:element组件在一个vue组件中重复使用 解决方案:此时的解决办法是设置 key 如下:一 ...

  10. 常见报错——Uncaught TypeError: document.getElementsByClassName(...).addEventListener is not a function...

    这是因为选择器没有正确选择元素对象 document.getElementsByClassName(...)捕捉到的是该类名元素的数组 正确的访问方式应该是: document.getElements ...

最新文章

  1. 细说 Java 主流日志工具库
  2. 马斯克:今年占全球发射质量65%,星舰5月或首次轨道试飞
  3. Community Server :: Forums
  4. python软件使用教程-python用什么软件编写
  5. ASP.NET2.0 - skmMenu 的使用
  6. NOIp2018集训test-9-7(pm) (联考一day1)
  7. 国内AI视频课程资源盘点
  8. SSL / TLS 协议运行机制详解
  9. 【转】C#开发笔记之05-迭代器中的状态机(State Machine)到底是什么?
  10. 无人驾驶入门(基本流程)
  11. mysql_safe作用_mysqld_safe
  12. TCP相关面试题总结
  13. 为什么不能用Scott登录Oracle,ORA-01017: invalid username/password; logon denied
  14. 制作的LINUX安装软件,竟然导致系统无法启动
  15. word提示“无法创建工作文件,请检查临时环境变量”的解决办法
  16. 计算机的自动播放功能有什么用,禁用自动播放功能的几种方法
  17. 我的世界服务器空岛删除怎么找回,我的世界-删除空岛指令 岛屿删除指令分享...
  18. 《大数据架构和算法实现之路:电商系统的技术实战》——3.2 案例实践
  19. 【opencv学习笔记】2用摄像头识别指定颜色
  20. 熟女姿态:完美女人必备的十个资本!

热门文章

  1. android 4 时间限制,Android触摸精灵
  2. java publisher_Combine -- 常见的 Publisher 及 Operator
  3. ajax poker,《使命召唤15》大逃杀模式介绍 人物解锁方法一览
  4. 计算机开机按f1,图文讲解开机按f1的解决方法,简单明了!
  5. 怎样准备全国大学生数模竞赛大学生篇非常全
  6. win10 修改用户名
  7. 使用eclipse时出现cannot access compilation unit的解决方法
  8. CCNA学习-路由器交换机的管理配置
  9. We Are A Team
  10. Php 类似coffeescript,有什么东西像CoffeeScript for PHP吗?