I was running into issues when setting up proxy (in src/setupProxy.js). I went through the changelog for http-proxy-middleware and found that require/import of http-proxy-middleware is now explicit.
So please try const { createProxyMiddleware } = require('http-proxy-middleware'); instead of const proxy = require('http-proxy-middleware'); to fix this.
I was running into issues when setting up proxy (in src/setupProxy.js). I went through the changelog for http-proxy-middleware and found that require/import of http-proxy-middleware is now explicit.
So please try
const { createProxyMiddleware } = require('http-proxy-middleware');
instead ofconst proxy = require('http-proxy-middleware');
to fix this.You basically need to do this now
Hope this helps :)