live-server icon indicating copy to clipboard operation
live-server copied to clipboard

Live server does not automatically refresh browser, even with head and body tags in html

Open LassassinX opened this issue 2 years ago • 0 comments

Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

Live-server --verbose error says "Failed to inject refresh script! Couldn't find any of the tags [ /</body>/i, /</svg>/, /</head>/i ]" even though my index.html does have a head and body tag.

Software details

  • Command line used for launching live-server:
  • OS: Windows 11
  • Browser (if browser related): Chrome/firefox
  • Node.js version: 15.14.0
  • live-server version: 1.2.1 Screenshot 2021-08-23 210705

LassassinX avatar Aug 23 '21 15:08 LassassinX