J
J
Juniorrrrr2020-01-26 15:51:07
JavaScript
Juniorrrrr, 2020-01-26 15:51:07

How to solve net::ERR_ADDRESS_INVALID problem?

Hello. Please tell me, I previously wrote a project on reacte through create react app. There was a problem in SSR. I installed the environment via create-react-ssr-app according to the documentation
. As a result, I catch an error of this kind

GET 0.0.0.0:3030/static/js/bundle.js net::ERR_ADDRESS_INVALID

5e2d8b04e54be748037584.png
When clicking on an error in the console, it displays
5e2d8b2f4f22b138456380.png
Feeling that webpack is not generating the correct path. Please tell me what is the problem and how can it be solved?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kolyosik, 2020-02-14
@Juniorrrrr

by default, the server side is hosted on "0.0.0.0"
for normal operation, you need to explicitly specify the host at startup;
for this, you need to add the script "start" in `package.json`
: "set \"HOST=localhost\" && react-ssr-scripts start",

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question