You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to search before to ask the question, but I didn't find what I was looking so let me ask.
I tried the HMP v3.0.0-beta2. I have a working solution with v2.0.6 but it is not working with v3 and I don't understand why. I have tried multiple things but without success.
I understand that something has changed with the target option where the path should be added in the target option but I'm not sure how this apply to the router option when we use such a mapping object.
7:40:49 AM [vite] Internal server error: Must provide a proper URL as target
at ProxyServer.<anonymous> (/Users/ganbin/Documents/app/node_modules/http-proxy/lib/http-proxy/index.js:69:35)
at HttpProxyMiddleware.middleware (/Users/ganbin/Documents/app/node_modules/http-proxy-middleware/dist/http-proxy-middleware.js:23:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
But some of my tries just don't show any error but the routing is not working.
If I use legacyCreateProxyMiddleware it is working.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have tried to search before to ask the question, but I didn't find what I was looking so let me ask.
I tried the HMP
v3.0.0-beta2
. I have a working solution withv2.0.6
but it is not working with v3 and I don't understand why. I have tried multiple things but without success.Here is my code:
I understand that something has changed with the
target
option where the path should be added in thetarget
option but I'm not sure how this apply to therouter
option when we use such a mapping object.Some of my try:
Most of the time I get this error:
But some of my tries just don't show any error but the routing is not working.
If I use
legacyCreateProxyMiddleware
it is working.Any hint?
Beta Was this translation helpful? Give feedback.
All reactions