当我在 Vscode 上点击“保存”时,实时服务器不会自动重新加载
过去的某一天,我遇到了这个问题,因为我的文件夹是 .something 以“.”开头。实时服务器无法工作。但现在,我的文件夹不是这样的,但当我在 vscode 上点击“保存”时,Live Server 无法再次正常工作。
Someday in the past, I had this problem because my folder is .something it starts with the "." the live server is not working. But now, my folder isn't like that but the Live Server isn't working right again when I hit save on my vscode.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
对我来说,我试图保存一个尚未完全HTML的文件。
我用适当的HTML结构包装了代码,现在它的工作正常。
For me, I was trying to save a file that was not fully HTML.
I wrapped my code with proper HTML structure and now its working fine.
确保头部的元字符集是“UTF-8”。
Make sure meta charset is "UTF-8" in the head.
有一件事可以解决这个问题。
There’s one thing that resolves the issue.
我在Sublime Text Ubuntu上使用Live-Server,我注意到我的节省不投入浏览器中的自动保存。
因此,我注意到的是,当我单独打开文件时,而不是作为文件夹解决问题时,问题就解决了。我希望这会有所帮助
I use live-server on sublime text Ubuntu and I noticed that my saves is not committing to the auto save in the browser.
So what I noticed was that when I open the files individually but not as a folder the problem was solved. I hope this helps