I'm getting all kinds of errors when running mern-starter in Docker with a different port than 8000. It appears to be hard coded in there to use 0.0.0.8000 - which causes issues. Can you advise? You should be able to easily reproduce by running it vi

Responses (3)

Join the discussion

When I update the publicPath to "/", it appears to work (no errors in browser), but the Header.css reference to background: #eee url(/bbaeb5f32b7042f0def39648a1d111b9.png) center - does not work. The header is all grayed out. It appears to me there is a bug with the output in webpack.config.dev.js or it is just not intuitive. I've tried a number of different variations. Also I think it's strange that the png gets put right in the root directory - this seems messy. Would be nice if it were in it's own ignored folder (ie: src).

Write a reply...

Try changing the publicPath on webpack.config.dev.js and port on server/config.js to your desired port.

I have done as you have suggested and still having problems. See screen shot: http://prnt.sc/dwuz9e

Write a reply...

change the port in server/config.js or better still remap it with docker e.g. -p 80:8000

I have done as you have suggested and still having problems. See screen shot: http://prnt.sc/dwuz9e

Write a reply...

loading ...