webpack-dev-server can't find localhost

后端 未结 7 1007
刺人心
刺人心 2020-12-19 01:39

I\'m trying to get started with React using webpack, but keep running into an error when I try to set up webpack-dev-server

相关标签:
7条回答
  • 2020-12-19 02:18

    Also encountered the same error and nothing fixed it.

    It appears, in my case, that I accidentally "corrupted" the /etc/hosts file by been able to write to it without the sudo permission.

    The clue was when I cat /etc/hosts the output was one messy line. I deleted and re-created the file as sudo, with the @lizzie-cd link and all went back to normal

    0 讨论(0)
提交回复
热议问题