Open ultravires opened 19 hours ago
The res type of http-proxy-middleware
refers to express
and res.redirect
is express only, but express is not actually used in rsbuild.
This is a known issue of http-proxy-middleware v2 and is fixed in v3. Since http-proxy-middleware v2 to v3 has some breaking changes for users, we will think about how to handle it in rsbuild.
Version
System: OS: Windows 11 10.0.22631 CPU: (32) x64 AMD Ryzen 9 7945HX with Radeon Graphics Memory: 2.00 GB / 15.69 GB Browsers: Edge: Chromium (127.0.2651.105) Internet Explorer: 11.0.22621.3527 npmPackages: @rsbuild/core: 1.0.18 => 1.0.18 @rsbuild/plugin-vue2: ^1.0.1 => 1.0.1
Details
Reproduce link
https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example/main
Reproduce Steps
pnpm i
pnpm dev