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

[Bug] 路由preload和qiankun一起使用造成的bug #12495

Open
consistent-k opened this issue Jun 26, 2024 · 3 comments
Open

[Bug] 路由preload和qiankun一起使用造成的bug #12495

consistent-k opened this issue Jun 26, 2024 · 3 comments

Comments

@consistent-k
Copy link
Contributor

consistent-k commented Jun 26, 2024

What happens?

升级umijs/max到最新(4.2.13) 部署后发现js和css资源加载异常,排查后得知可能是preload route提交导致的。

Mini Showcase Repository(REQUIRED)

https://github.com/consistent-k/umi-demo

How To Reproduce

1、将示例代码库中的主应用(base)和子应用(child)分别进行编译
2、使用nginx启动(仓库内有示例nginx,需要修改一些路径即可)
3、访问主应用路由 /child/detail
4、打开控制台观察加载情况

image

5、排查配置项后得知。child的.umirc.ts中
image
此处配置如果修改为不是 /child 上图加载资源就是正常或者将child的umi降级回到4.1.0也可以正常加载,请排查一下这个配置项是否有错。

补充:child的base配置为 /child是为了单独访问子应用的时候保持和通过主应用访问一样的路径,项目正常运行了一年多了。

Context

  • Umi Version: 4.2.13
  • Node Version: 20
  • Platform: Mac OS Chrome最新
@consistent-k
Copy link
Contributor Author

怀疑是这个pr导致的 #12234@fz6m 大佬帮忙定位一下 影响了我这边多个项目的正常使用

@zhengzhuang96
Copy link

+1

@consistent-k
Copy link
Contributor Author

@sorrycc 云谦哥 这个bug有空帮忙看一下不

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

No branches or pull requests

2 participants