-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to parse html #5767
Comments
|
OK thanks. It was working in the browser and other similar tools so I assumed it would be OK. I'll escape the characters. |
Yeah, browser tends to be forgiving on syntax error. |
opening to possibly get better error message |
Describe the bug
Vite is failing to build due to a failure to parse the
index.html
file.Reproduction
Create a new vanilla JS project with
yarn create vite repro --template vanilla
.Replace the content of the
index.html
with the following:Try to build the project or run the dev server and the following error appears:
System Info
System: OS: macOS 12.0.1 CPU: (8) arm64 Apple M1 Memory: 232.83 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 17.0.1 - /opt/homebrew/bin/node Yarn: 1.22.10 - /opt/homebrew/bin/yarn npm: 8.1.0 - /opt/homebrew/bin/npm Browsers: Brave Browser: 89.1.21.77 Chrome: 95.0.4638.69 Firefox: 92.0.1 Safari: 15.1 npmPackages: vite: ^2.6.4 => 2.6.14
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: