title: React App - createProxyMiddleware is not a function
body: <p>I am working on a react project and am running into some issues with http-proxy-middleware. I followed the readme and my setupProxy.js file looks like this</p>
  <pre><code>const {createProxyMiddleware} = require('http-proxy-middleware');
  
  
  module.exports = function(app) {
    app.use(
      '/api',
      createProxyMiddleware({
        target: 'https://localhost:3000',
        changeOrigin: true
      })
    );
  };
  </code></pre>
  <p>Anyone have any ideas as to why this might be occurring? From what I've seen, this is the correct way to set this up. Any response or suggestions will be greatly appreciated.</p>