michaelcheng924 / react-tutorial-todos

Learn React by building a ToDo app
255 stars 100 forks source link

sockjs-node error polluting the console #2

Open limax84 opened 8 years ago

limax84 commented 8 years ago

Hi, First of all, thank you for the great work. Loved your vid. I cloned your repo, installed npm dependencies, built the project, and ran the server :

npm install
webpack
node server.js

But when I visit http://localhost:3000/ I get many error in the console, every 3seconds:

abstract-xhr.js:128 GET http://127.0.0.1:8080/sockjs-node/info?t=1467733472020 net::ERR_CONNECTION_REFUSED
client?839d:70 [WDS] Disconnected!

It looks like sockjs is look at the wrong port number. Any idea ?

sumankhatri commented 7 years ago

Even I got the same while deploying it with tomcat, do you have any idea how we can resolve this ?

image

if I specify entry as src folder only, then I am flooded with CORS error, Could you please suggest what I can do in this case ?