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

Remix SPA作为子应用接入时无法正常运行 #1297

Closed
MorningK opened this issue Jul 12, 2024 · 3 comments
Closed

Remix SPA作为子应用接入时无法正常运行 #1297

MorningK opened this issue Jul 12, 2024 · 3 comments
Labels
Need Reproduction 需要复现步骤

Comments

@MorningK
Copy link

MorningK commented Jul 12, 2024

问题描述

问题的具体描述

主应用是react项目,子应用是Remix SPA应用时,无法正常运行

复现步骤

  1. 使用vite cli pnpm create vite创建react 主项目
  2. 创建remix cli pnpm create remix@latest --template remix-run/remix/templates/spa创建spa 子项目
  3. 在主项目中添加子项目,开始iframe沙箱
  4. 访问页面,加载子项目后无法正常展示子应用内容,并且页面很快卡死

上传截图

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

复现仓库

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

https://github.com/MorningK/micro-remix-vite-spa

环境信息

  • micro-app版本:"@micro-zoe/micro-app": "1.0.0-rc.5",
  • 主应用前端框架&版本:"react": "^18.3.1",
  • 子应用前端框架&版本:"@remix-run/react": "^2.10.2", "react": "^18.2.0",
  • 构建工具&版本:"vite": "^5.1.0",
@raoenhui raoenhui added the Need Reproduction 需要复现步骤 label Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

Hello @MorningK. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @MorningK, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 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,若有任何问题,可评论回复。

@MorningK
Copy link
Author

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