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

HMR gathering information from my URL and hitting my backend instead no dev server #728

Open
juniorgarcia opened this issue Feb 17, 2023 · 0 comments · May be fixed by #851
Open

HMR gathering information from my URL and hitting my backend instead no dev server #728

juniorgarcia opened this issue Feb 17, 2023 · 0 comments · May be fixed by #851

Comments

@juniorgarcia
Copy link

Hello!

I have a backend for frontend running on port 3000. Is it possible to configure HMR in a way that it works correctly in those situations so that I don't get request errors when react refresh tries to gather information about refreshing my app?

I get this error because of the request hitting my express server:
image

The request URL is http://localhost:3000/ws/337/tt0fq4rk/jsonp?c=_jp.ant25bi and react refresh is one of the initiators of this request.

The response for this request is actually the main page my backend for frontend powered by express delivers.

Thank you!

@pmmmwh pmmmwh linked a pull request Jun 2, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant