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
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 https://github.com/vuejs/vue-next instead.
A workaround for this is to remove the EJS snippet (the line containing "<%= mainJS %>) from the index.html, start the dev server, and put that line back into index.htmlafter the dev server has started.
This way the dev server works fine, and seems to be starting without the above error afterwards.
Describe the bug
When using
vite-plugin-html
and injecting vars into the html using the following invite.config.js
:and using it in
index.html
like this:the dev server fails to start with this message:
A workaround for this is to remove the EJS snippet (the line containing
"<%= mainJS %>
) from theindex.html
, start the dev server, and put that line back intoindex.html
after the dev server has started.This way the dev server works fine, and seems to be starting without the above error afterwards.
Reproduction
https://github.com/yurique/vite-html-plugin-bug
System Info
vite
version: 2.0.5Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: