Checks
Describe the bug (be clear and concise)
Downstream when compiling with TypeScript with the latest v4.0 beta versions we see:
Error: node_modules/.../http-proxy-middleware/index.d.ts(8,30): error TS2307: Cannot find module '@hono/node-server' or its corresponding type declarations.
Error: node_modules/.../http-proxy-middleware/index.d.ts(9,35): error TS2307: Cannot find module 'hono' or its corresponding type declarations.
manually installing adding '@hono/node-server' and hono solves it but that's not really our dependency.
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
- Is there a way to keep
hono support only for those who care without enforcing installing hono dependencies?
- If not, should
hono dependencies be moved from devDependencies to dependencies to avoid TypeScript declaration check errors?
How is http-proxy-middleware used in your project?
As a dependency of `@rspack/core`
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response
Checks
http-proxy-middleware.Describe the bug (be clear and concise)
Downstream when compiling with TypeScript with the latest v4.0 beta versions we see:
manually installing adding
'@hono/node-server'andhonosolves it but that's not really our dependency.Step-by-step reproduction instructions
Expected behavior (be clear and concise)
honosupport only for those who care without enforcing installing hono dependencies?honodependencies be moved fromdevDependenciestodependenciesto avoid TypeScript declaration check errors?How is http-proxy-middleware used in your project?
As a dependency of `@rspack/core`What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response