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

承接子应用的文件名,不能是 MicroApp.vue,否则会报路由栈溢出的错误,排查了整整一天 #1376

Closed
kzone0520 opened this issue Sep 20, 2024 · 3 comments
Labels
Need Reproduction 需要复现步骤

Comments

@kzone0520
Copy link

kzone0520 commented Sep 20, 2024

问题描述

问题的具体描述
承接子应用的文件名,不能是 MicroApp.vue,否则会报路由栈溢出的错误,排查了整整一天

复现步骤

1.主应用是vue3, 子应用vue2。
2.主应用创建一个页面,名叫 MicroApp.vue, 里面放子应用,添加路由后运行必报错

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。
Uncaught (in promise) RangeError: Maximum call stack size exceeded
at getComponentTrace (runtime-core.esm-bundler.js:67)
at warn$1 (runtime-core.esm-bundler.js:25)
at logError (runtime-core.esm-bundler.js:267)
at handleError (runtime-core.esm-bundler.js:259)
at renderComponentRoot (runtime-core.esm-bundler.js:6337)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:4976)
at ReactiveEffect.run (reactivity.esm-bundler.js:177)
at instance.update (runtime-core.esm-bundler.js:5107)
at setupRenderEffect (runtime-core.esm-bundler.js:5117)
at mountComponent (runtime-core.esm-bundler.js:4885)

复现仓库

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

环境信息

  • micro-app版本: 1.0.0-rc.10
  • 主应用前端框架&版本:
  • 子应用前端框架&版本:
  • 构建工具&版本:
@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Sep 20, 2024
Copy link

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

@lilu0826
Copy link

这不就是vue的递归组件特性嘛。可以改成SubApp.vue

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

3 participants