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

在Nuxt3中引入microapp,服务端运行报错提示window未定义 #1551

Open
Hertz9409 opened this issue Mar 17, 2025 · 1 comment
Open
Labels
Need Reproduction 需要复现步骤

Comments

@Hertz9409
Copy link

问题描述

在Nuxt3中引入microapp,服务端运行报错提示window未定义。源码中代理Worker时直接读取window.Worker,未进行执行环境判断。

上传截图

Image

环境信息

  • micro-app版本:1.0.0-rc.22
  • 主应用前端框架&版本:"nuxt": "3.13.1"
  • 子应用前端框架&版本:"vue": "^3.5.13",
  • 构建工具&版本:vite6
@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Mar 18, 2025
Copy link

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

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