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

proxy setting in package.json #1

Open
rohitzGit opened this issue Dec 12, 2018 · 2 comments
Open

proxy setting in package.json #1

rohitzGit opened this issue Dec 12, 2018 · 2 comments

Comments

@rohitzGit
Copy link

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

changing the proxy settings as below worked:
"proxy": "http://localhost:8080/api"

Is it fine to proceed as above?

@devcat24
Copy link

devcat24 commented Jan 4, 2019

It is related to create-react-app version2.
Check the following link

facebook/create-react-app#5103

@lopeselio
Copy link

"proxy": "http://localhost:3002/api",
Change it to a string format like this, instaed of writing it as an object. That should fix it. See image below.
Captufre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants