[BUG]升级@umijs/max至最新版后,访问子应用路由会无限刷新页面

Author: wangzhipeng404Created Sep 11, 2026Updated Sep 11, 2026

bug 描述

升级@umijs/max到最新版v4.7.16,微前端开发模式下访问子应用会无限刷新页面,子应用命令行输出

Tried to parse body after request body has already been read. Try setting parseReqBody to false and manually specify the body you want to send in decorateProxyReqBody.

复现步骤 | Recurrence steps

1、dev模式启动主应用和子应用 2、访问主应用页面 3、访问子应用路由

期望结果 | Expected results

正常加载子应用

复现代码 | Recurrence code

复现代码仓库 https://github.com/wangzhipeng404/antdv6-qiankun-bug-demo

复现步骤

  • 启动主应用:npm run start
  • 启动子应用: npm run strart
  • 访问主应用: localhost:7000
  • 访问子应用: localhost:7000/slave/

其他信息

Image

Source: ant-design/ant-design-pro