django-reactjs-boilerplate
django-reactjs-boilerplate copied to clipboard
ip not defined
trafficstars
branch: step5_hot_reloading
issue: config.ip is not defined in server.js
ip should be added to config in webpack.local.config.js
Great tutorial!
I had the same issue. Had to add a line to webpack.local.config.js -
config.ip = ip
And then it worked perfectly.
I'm using "webpack": "^4.16.5" and it is not allowed anymore to set custom options in config. You can create extra file wit constants like ip or use node process.env.