Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error importing createProxyMiddleware function #10766

Closed
wants to merge 1 commit into from

Commits on Mar 31, 2021

  1. 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');`
    AMS777 committed Mar 31, 2021
    1 Configuration menu
    Copy the full SHA
    400dd44 View commit details
    Browse the repository at this point in the history