Closed Juansasa closed 5 months ago
http-proxy-middleware
Got this error while compiling with Rollup
node_modules/http-proxy-middleware/dist/index.js -> node_modules/http-proxy-middleware/dist/legacy/index.js -> node_modules/http-proxy-middleware/dist/legacy/public.js -> node_modules/http-proxy-middleware/dist/legacy/create-proxy-middleware.js -> node_modules/http-proxy-middleware/dist/index.js
Build with rollup + typescript
More consistent dist import termination
dist
express proxy middleware
server.use( createProxyMiddleware({ pathFilter: "/api", changeOrigin: true, secure: false, target: process.env.API, pathRewrite: { "^/api/": "/internal/endpoint/", }, logger: console, }), );
Mac OSX 14.4.1 Node v21.7.2
No response
Thanks for reporting @Juansasa
Am able to confirm the circular dependencies:
npx madge --circular src/index.ts
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
Got this error while compiling with Rollup
node_modules/http-proxy-middleware/dist/index.js -> node_modules/http-proxy-middleware/dist/legacy/index.js -> node_modules/http-proxy-middleware/dist/legacy/public.js -> node_modules/http-proxy-middleware/dist/legacy/create-proxy-middleware.js -> node_modules/http-proxy-middleware/dist/index.js
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
More consistent
dist
import terminationHow is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response