django-reactjs-boilerplate icon indicating copy to clipboard operation
django-reactjs-boilerplate copied to clipboard

ip not defined

Open tzhong opened this issue 9 years ago • 2 comments
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!

tzhong avatar Sep 12 '16 02:09 tzhong

I had the same issue. Had to add a line to webpack.local.config.js -

config.ip = ip

And then it worked perfectly.

bhaskar-c avatar Feb 12 '18 22:02 bhaskar-c

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.

tssan avatar Aug 13 '18 13:08 tssan