-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bug: pending triageMaybe a bug, waiting for confirmationMaybe a bug, waiting for confirmation
Description
Describe the bug
When upgrading from 1.1.0 to 1.1.1, my vitepress site fails to build with the error:
vitepress v1.1.1
- building client + server bundles...
x Build failed in 3.78s
✖ building client + server bundles...
build error:
SyntaxError: Element is missing end tag.
at createCompilerError (/home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:1325:17)
at emitError (/home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2794:5)
at Object.onclosetag (/home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2182:13)
at Tokenizer.stateInClosingTagName (/home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:749:16)
at Tokenizer.parse (/home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:1107:16)
at Object.baseParse (/home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2826:13)
at Object.parse (/home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js:633:23)
at Object.parse$2 [as parse] (/home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:1853:24)
at createDescriptor (file:///home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@vitejs/plugin-vue/dist/index.mjs:74:[43](https://github.com/UnrefinedBrain/vue-metamorph/actions/runs/8737437266/job/23974421388?pr=68#step:8:44))
at transformMain (file:///home/runner/work/vue-metamorph/vue-metamorph/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@vitejs/plugin-vue/dist/index.mjs:2367:34)
Reproduction
https://github.com/UnrefinedBrain/vue-metamorph/actions/runs/8737437266/job/23974421388?pr=68
- clone vue-metamorph
- checkout the
dependabot/npm_and_yarn/development-dependencies-abea8692adbranch pnpm i && pnpm docs:build- see error
Expected behavior
build should succeed like in 1.1.0
System Info
happens everywhere, but this is my local envinfo
→ npx envinfo --system --npmPackages vitepress --binaries --browsers
System:
OS: Linux 6.1 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
Memory: 19.65 GB / 31.24 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
pnpm: 8.15.4 - ~/.nvm/versions/node/v20.11.1/bin/pnpm
npmPackages:
vitepress: 1.1.1 => 1.1.1
Additional context
The same code builds successfully on vitepress 1.1.0
Validations
- Check if you're on the latest VitePress version.
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
bug: pending triageMaybe a bug, waiting for confirmationMaybe a bug, waiting for confirmation