You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ vite
08:44:49
VITE v4.1.1 ready in 1658 ms
➜ Local: http://localhost:5173/ 08:44:49
➜ Network: use --host to expose 08:44:49
➜ press h to show help 08:44:49
✘ [ERROR] Unterminated string literal
script:/home/projects/vitejs-vite-bdubvy/index.html?id=0:1:2:
1 │ ">
╵ ^
ERROR Build failed with 1 error: 08:44:49
script:/home/projects/vitejs-vite-bdubvy/index.html?id=0:1:2: ERROR: Unterminated string literal
Even though this error occurs, the app starts just fine.
### Used Package Manager
yarn
### Logs
_No response_
### Validations
- [X] Follow our [Code of Conduct](https://github.com/vitejs/vite/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitejs.dev/guide).
- [X] Check that there isn't [already an issue](https://github.com/vitejs/vite/issues) that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to [vuejs/core](https://github.com/vuejs/core) instead.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
In retrospect, I think it's unlikely that we'll run transformIndexHtml when scanning as it'll slow down the startup. And we haven't got similar reports of this being an issue. I'll go ahead and close this as a wontfix for now.
Describe the bug
When I include a dynamic entry point into my app and start the dev server, I get an error that the build failed.
In the
index.html
file, I dynamically set the entry point using the format...When I start the vite dev server, I get...
Even though this error occurs, the app starts just fine.
Reproduction
https://stackblitz.com/edit/vitejs-vite-bdubvy?file=vite.config.js
Steps to reproduce
Run
npm install
followed bynpm run dev
System Info
The text was updated successfully, but these errors were encountered: