Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同一个页面两个子应用,在子应用中是用vue-router频繁切换页面,会出现: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. #1423

Open
xiaogang12131 opened this issue Oct 18, 2024 · 0 comments

Comments

@xiaogang12131
Copy link

xiaogang12131 commented Oct 18, 2024

问题描述

问题的具体描述
NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

复现步骤

  1. 同一个页面两个子应用
  2. 其中一个子应用 被设置 keep-alive:true,在其中是用vue-router,频繁跳转页面

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。

6f0c9f18643b1413c37e7e2c06962457 4734d9a48e03769f9fa74232d27709f0 发现是 insertbefore ,将元素插入到另一个子应用中,导致找不掉 parentNode,报错,帮忙看下这是什么问题

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

环境信息

  • micro-app版本:0.8.11
  • 主应用前端框架&版本:react
  • 子应用前端框架&版本:vue3
  • 构建工具&版本:[email protected]
@xiaogang12131 xiaogang12131 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
@xiaogang12131 xiaogang12131 changed the title 同一个页面两个子应用,在子应用中是用vue-router 同一个页面两个子应用,在子应用中是用vue-router跳转页面,会偶现: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. Oct 18, 2024
@xiaogang12131 xiaogang12131 changed the title 同一个页面两个子应用,在子应用中是用vue-router跳转页面,会偶现: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. 同一个页面两个子应用,在子应用中是用vue-router频繁切换页面,会偶现: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. Oct 18, 2024
@xiaogang12131 xiaogang12131 changed the title 同一个页面两个子应用,在子应用中是用vue-router频繁切换页面,会偶现: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. 同一个页面两个子应用,在子应用中是用vue-router频繁切换页面,会出现: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. Oct 18, 2024
@xiaogang12131 xiaogang12131 reopened this Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant