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

Closed
xiaogang12131 opened this issue Oct 18, 2024 · 2 comments
Labels
Need Reproduction 需要复现步骤

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
@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Oct 22, 2024
Copy link

Hello @xiaogang12131. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @xiaogang12131, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

Copy link

Since the issue was labeled with Need Reproduction, but no response in 7 days. This issue will be close. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要可复现步骤,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need Reproduction 需要复现步骤
Projects
None yet
Development

No branches or pull requests

2 participants