解决vue打包后报“er; // Unhandled 'error' event”错误

vue打包后有这个报错:



原因:使用SwtitchHosts!将默认localhost覆盖了.
解决方法:在SwtitchHosts!中增加localhost配置:

# localhost
127.0.0.1 localhost

你可能感兴趣的:(解决vue打包后报“er; // Unhandled 'error' event”错误)