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

主子应用都使用ant-design-pro创建,主应用报错。 #10973

Closed
lecd opened this issue Apr 14, 2023 · 7 comments · Fixed by #10984
Closed

主子应用都使用ant-design-pro创建,主应用报错。 #10973

lecd opened this issue Apr 14, 2023 · 7 comments · Fixed by #10984

Comments

@lecd
Copy link

lecd commented Apr 14, 2023

按umi4.0 官方文档操作, https://umijs.org/docs/max/micro-frontend#插件注册子应用。

主应用报错
1681472010328

"@umijs/max": "^4.0.52",
"@qiankun": "^2.10.5",

最小代码仓库地址:https://gitee.com/ProjectsTeam/qiankunerrror.git

@github-actions
Copy link

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2023
@fz6m
Copy link
Member

fz6m commented Apr 14, 2023

子应用带 publicPath 的时候要在 entry 上附带上,不然拉不到资源:

  entry: '//127.0.0.1:8104/org/',

@lecd
Copy link
Author

lecd commented Apr 16, 2023

子应用带 publicPath 的时候要在 entry 上附带上,不然拉不到资源:

  entry: '//127.0.0.1:8104/org/',

加了
1681629595110
报其他错误了
1681629679484

@fz6m
Copy link
Member

fz6m commented Apr 16, 2023

我现在没法调试 mfsu ,有 BUG ,把 mfsu: false 关了试试,我本地没遇到你这个问题。

#10893 解决后,我再确认下。

@lecd
Copy link
Author

lecd commented Apr 17, 2023

我现在没法调试 mfsu ,有 BUG ,把 mfsu: false 关了试试,我本地没遇到你这个问题。

#10893 解决后,我再确认下。

关闭mfsu: false,确实正常了

@lecd
Copy link
Author

lecd commented Apr 17, 2023

我现在没法调试 mfsu ,有 BUG ,把 mfsu: false 关了试试,我本地没遇到你这个问题。

#10893 解决后,我再确认下。

上线后在主应用打开子应用出现这个报错
1681719825600

单独打开子应用没报错。
1681719987309
现在我需要配置什么?

@fz6m
Copy link
Member

fz6m commented Apr 17, 2023

#10989 跟进。

目前可以通过给子应用开启 esbuildMinifyIIFE: true 解决,这个先关了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants