-
Problem: After upgrading to CRA v5 I've observed a weird issue with using Setup:
How it was working before upgrading:
How it's working after upgrading:
No other changes were applied to the code. What should I do and is that a bug or something not mentioned in the migration guides? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
To add to this, it appears the WP dev server middleware to redirect to PUBLIC_URL when the path doesn't match is interfering with proxied API requests. I generated a fresh test app and ejected, and commenting out this line solved the above problem, though of course that would take away the benefit of the redirect. https://github.com/facebook/create-react-app/blob/main/packages/react-scripts/config/webpackDevServer.config.js#L125 Is there some way to have both? |
Beta Was this translation helpful? Give feedback.
-
Cannot reproduce that anymore for some reason... Probably some react-scripts dependency update made it work fine. |
Beta Was this translation helpful? Give feedback.
Cannot reproduce that anymore for some reason... Probably some react-scripts dependency update made it work fine.