You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrading from react-script 3.3.1 to react-scripts 3.4.0 required changing setupProxy #8513
changed the title [-]Upgrading from react-script 3.3.1 to react-scripts 3.4.0 required setupProxy[/-][+]Upgrading from react-script 3.3.1 to react-scripts 3.4.0 required changing setupProxy[/+]on Feb 19, 2020
This has nothing to do with CRA but with http-proxy-middleware package. They just released a new major version introducing breaking changes like the one you are referring to.
Could it be that you probably upgraded that package and confused it with the update of react-scripts?
Activity
[-]Upgrading from react-script 3.3.1 to react-scripts 3.4.0 required setupProxy[/-][+]Upgrading from react-script 3.3.1 to react-scripts 3.4.0 required changing setupProxy[/+]partynikko commentedon Feb 19, 2020
Your two examples are identical. Did you accidentally paste the same code twice?
breathe commentedon Feb 19, 2020
@partynikko oops I did ... edited.
The original code I had to change used the default export off of the http-proxy-middleware ...
partynikko commentedon Feb 19, 2020
This has nothing to do with CRA but with
http-proxy-middlewarepackage. They just released a new major version introducing breaking changes like the one you are referring to.Could it be that you probably upgraded that package and confused it with the update of
react-scripts?hjr3 commentedon Feb 19, 2020
https://create-react-app.dev/docs/proxying-api-requests-in-development/#configuring-the-proxy-manually is now wrong due to the breaking changes in
http-proxy-middleware.I opened #8515 to fix.