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

umi4 引入 @micro-zoe/micro-app 报错 #1454

Open
tpc-ht opened this issue Nov 25, 2024 · 3 comments
Open

umi4 引入 @micro-zoe/micro-app 报错 #1454

tpc-ht opened this issue Nov 25, 2024 · 3 comments
Assignees
Labels
Need Reproduction 需要复现步骤

Comments

@tpc-ht
Copy link

tpc-ht commented Nov 25, 2024

Umi v4.3.35
@micro-zoe/micro-app 1.0.0-rc.15
报错信息:

  1. Uncaught (in promise) Error: Container initialization failed as it has already been initialized with a different share scope
  2. Uncaught Error: Iframe has not been created yet.
    image
    image
@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Nov 25, 2024
@timhub66 timhub66 self-assigned this Nov 25, 2024
Copy link

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

@tpc-ht
Copy link
Author

tpc-ht commented Nov 26, 2024

目前主子应用都是umi4。主应用挂载其他链接没得问题(例如:B站),但是子应用的umi项目启动的链接挂载报错

@tpc-ht
Copy link
Author

tpc-ht commented Nov 26, 2024

直接使用 <iframe/> 是可以打开的。 使用 pnpm dlx create-umi@latest 创建umi项目复现

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