vscode-live-server: Live server is not possible without body or head tag
HI! I tried running live server on my vscode today and I keep getting the prompt "live server is not possible without body or head tag. I ran the same live server yesterday and it worked fine. What can be done about it please?
I’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->
Current behavior
Expected behavior
Environment
Browser:
- [ ] 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 -->
- Platform: <!-- Mac, Linux, Windows -->
- Visual Studio Code: <!-- `code --version` -->
Others
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 22 (7 by maintainers)
Hey, it means your html doesn’t have
<body>
or<head>
tag.Can you show me a full screenshot of vscode window?
Please create a file and paste this HTML.
Now try to open the file using Live Server. It should not give that warning message.