ritwickdey / vscode-live-server

Launch a development local Server with live reload feature for static & dynamic pages.
https://ritwickdey.github.io/vscode-live-server
MIT License
5.66k stars 1.23k forks source link

live reload is not possible without a head or body tag error #2806

Open Nelac0914 opened 1 year ago

Nelac0914 commented 1 year ago

I'm submitting a problem with the error pop up

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ x] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

It seems that whenever I add a new element/ edit a current element, live reload isn't able to work. It would just leave a blank page on my browser, I would then have to manually reload the page on my browser for the 'website' to appear. I am new to coding so it's most likely that I have made an error in my code somewhere, but I can't seem to find where I went wrong. I have all the required tags for live reload, especially head and body as they kept on insisting that I don't have them. Screenshot (2)

Expected behavior

Not to have errors popping up everytime I make an edit

Environment

Browser:

- [x] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: <!-- Check which version is installed --> 
- v6.0.6
- Platform:  <!-- Mac, Linux, Windows -->
- windows
- Visual Studio Code: <!-- `code --version` -->

Others

blinry commented 1 year ago

I just ran into the same issue when working on a tiny test project without dedicated body/head tags.