Use saved searches to filter your results more quickly
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.
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
Failed to parse html #5767
Comments
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:
yarn run v1.22.10 warning package.json: No license field $ vite build vite v2.6.14 building for production. ✓ 0 modules transformed. [vite:build-html] Unable to parse 3 | 4 |
5 | foo baz; | ^ 6 |
7 | file: repro/index.html error during build: Error: Unable to parse 3 |
4 |
5 | foo baz; | ^ 6 |
7 | at traverseHtml (repro/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:21240:15) at async Object.transform (repro/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:21305:17) at async ModuleLoader.addModuleSource (repro/node_modules/rollup/dist/shared/rollup.js:22152:30) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
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.
Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
The provided reproduction is a minimal reproducible example of the bug.
The text was updated successfully, but these errors were encountered:
Сообщение «Ошибка: Недопустимый знак» при запуске скрипта Здравствуйте. С VBS так вплотную не раотаю, по этому если проблема очевидна то не бросайтесь.
Ошибка при запуске приложения «Unable to fund a version the runtime to run this application» Ув. гуру! Подскажите, пожалуйста, что за ошибка вылезла у одного из пользователей моего.
В сообщении написано что ошибка в строке 2 файла. Смотрите что там и исправляйте. Судя по всему там комментарий вначале которого должен быть символ ; .
Попробуйте самостоятельно найти причину. Вот макросы https://autoit-script.ru/docs/macros.htm Найдите там crlf на который ругается интерпретатор и найдите отличия между тем что у вас в коде и тем что должно быть.
Программирование не ваше. Займитесь чем-то другим.
Func IsHoldingAlt() If _IsPressed("12", $hDLL) Then ConsoleWrite("_IsPressed - Pressed Shift."& @ crlf)
Сообщение от amx221
Сообщение от locm
Ошибка: «Unable to parse schema file.» Добрый день! Помогите, пожалуйста. Работаю в программе NotePad++ Есть два файла: .
Ошибка «Parse error: syntax error, unexpected $end in shCacheContent.php on line 9406» Добрый день всем! Прошу помочь с ошибкой Parse error: syntax error, unexpected $end in.
При запуске winetricks выдаёт «Unable to find a volume for file extraction» Привет всем! Пишу я в терминале( су) root@debian:/home/maxim# ./winetricks vcrun2008 Мне в.
Ошибка «Parse error: syntax error, unexpected T_VARIABLE on line 8» Даны x, y, z. Определить(представлено на картинке) Написала код.Но выдает ошибку Parse error.
Use saved searches to filter your results more quickly
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.
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
[vite:build-html] Unable to parse html in build step #4067
[vite:build-html] Unable to parse html in build step #4067
bug Something isn’t working feat: html p3-minor-bug 🔨 An edge case that only affects very specific usage (priority)
Comments
Describe the bug
using vite with vite-plugin-string for importing html as strings dev mode works great, but when trying to build for production, we encounter the error below. the expected behavior is to not try to traverse all of my HTMLs as I don’t care if it’s valid or not. my index.html is perfectly valid but my other dozen HTML files that we import as strings are not all valid (in syntax).
[vite:build-html] Unable to parse 1 | export default "Already have an account?\n
\n
\n\n
\n \n
\n"; | ^ file: src/app/outer/register/register.html error during build: Error: Unable to parse 1 | export default "Already have an account?\n
\n \n\n \n \n\n"; | ^ at traverseHtml (/node_modules/vite/dist/node/chunks/dep-0ed4fbc0.js:24398:15) at async Object.transform (/node_modules/vite/dist/node/chunks/dep-0ed4fbc0.js:24453:17) at async ModuleLoader.addModuleSource (/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:18616:30) at async ModuleLoader.fetchModule (/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:18672:9) at async /vite/node_modules/rollup/dist/shared/rollup.js:18647:48 at async Promise.all (index 3) at async ModuleLoader.fetchDynamicDependencies (/vite/node_modules/rollup/dist/shared/rollup.js:18637:30) at async Promise.all (index 1) at async ModuleLoader.fetchModule (/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:18674:9) at async Promise.all (index 0)
Reproduction
using vite-plugin-string while importing broken html syntax that is not the index.html
Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
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.
Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
The text was updated successfully, but these errors were encountered: