2

I am trying to connect react with multiple proxy server and got this error

error When specified, "proxy" in package.json must be a string. Instead, the type of "proxy" was "object". Either remove "proxy" from package.json, or make it a string.

package.json

{

  "proxy": [
    "http://192.168.29.184:5000",
    "http://192.168.1.5:5000",
    "http://localhost:5000"
  ],

  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

}

someone please explain how can I separate it

1
  • This has been asked previously - see the responses here. Commented Oct 6, 2022 at 12:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.