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 v5.0.8 building for production...
✓ 0 modules transformed.
[vite:build-html] Cannot use replaced character 26 as slice start anchor.
file: /home/projects/vitejs-vite-zjnwkg/index.html
error during build:
Error: Cannot use replaced character 26 as slice start anchor.
at MagicString.slice (/home/projects/vitejs-vite-zjnwkg/node_modules/vite/dist/node/chunks/dep-uAHLeuC6.js:7299:10)
at nodeStartWithLeadingWhitespace (/home/projects/vitejs-vite-zjnwkg/node_modules/vite/dist/node/chunks/dep-uAHLeuC6.js:38582:36)
at eval (/home/projects/vitejs-vite-zjnwkg/node_modules/vite/dist/node/chunks/dep-uAHLeuC6.js:38772:34)
at traverseNodes (/home/projects/vitejs-vite-zjnwkg/node_modules/vite/dist/node/chunks/dep-uAHLeuC6.js:38460:5)
at eval (/home/projects/vitejs-vite-zjnwkg/node_modules/vite/dist/node/chunks/dep-uAHLeuC6.js:38464:48)
at traverseNodes (/home/projects/vitejs-vite-zjnwkg/node_modules/vite/dist/node/chunks/dep-uAHLeuC6.js:38464:25)
at eval (/home/projects/vitejs-vite-zjnwkg/node_modules/vite/dist/node/chunks/dep-uAHLeuC6.js:38464:48)
at traverseNodes (/home/projects/vitejs-vite-zjnwkg/node_modules/vite/dist/node/chunks/dep-uAHLeuC6.js:38464:2
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 vuejs/core instead.
Describe the bug
For example index.html like this:
Will not build with the error:
Reproduction
https://stackblitz.com/edit/vitejs-vite-zjnwkg?file=index.html&terminal=dev
Steps to reproduce
https://stackblitz.com/edit/vitejs-vite-zjnwkg?terminal=dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: