Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error importing
createProxyMiddleware
function
When the `createProxyMiddleware` function is imported with curly braces ({}) like this: ` const { createProxyMiddleware } = require('http-proxy-middleware');` it causes following error: `createProxyMiddleware is not a function` The `createProxyMiddleware` function works when imported without curly braces ({}): `const createProxyMiddleware = require('http-proxy-middleware');`
- Loading branch information
400dd44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explained here:
https://stackoverflow.com/questions/64867519/react-app-createproxymiddleware-is-not-a-function