\n\u003C/template>\n```\n\nThere is no error for\n\n\n```\n\u003Ctemplate>\n\u003Cimg srcset=\"\"/>\n\u003C/template>\n```\n\n\n\n### Expected behavior\n\nThe error link to the line at which the `srcset` attribute is set.\n\n\n### System Info\n\n```Text\n> @ envinfo D:\\GitHub\\sftpplus.com\n> envinfo --system --npmPackages vitepress --binaries --browsers\n\n\n System:\n OS: Windows 11 10.0.22621\n CPU: (16) x64 AMD Ryzen 7 4800HS with Radeon Graphics\n Memory: 3.81 GB / 15.42 GB\n Binaries:\n Node: 24.2.0 - D:\\GitHub\\sftpplus.com\\build-website\\nodeenv\\Scripts\\node.EXE\n npm: 11.3.0 - D:\\GitHub\\sftpplus.com\\build-website\\nodeenv\\Scripts\\npm.CMD\n pnpm: 10.12.1 - D:\\GitHub\\sftpplus.com\\build-website\\nodeenv\\Scripts\\pnpm.CMD\n bun: 1.2.16 - ~\\.bun\\bin\\bun.EXE\n Browsers:\n Edge: Chromium (137.0.3296.68)\n Internet Explorer: 11.0.22621.1\n npmPackages:\n vitepress: ^2.0.0-alpha.6 => 2.0.0-alpha.6\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3083],{"name":3084,"color":3085},"build","377ba8",4839,"ERROR: Unexpected \"const\" for srcset with space value for vitepress build","2025-07-15T08:47:59Z","https://github.com/vuejs/vitepress/issues/4839",0.68555045,{"description":3092,"labels":3093,"number":3095,"owner":3023,"repository":3024,"state":3025,"title":3096,"updated_at":3097,"url":3098,"score":3099},"### Describe the bug\n\nWhen building my VitePress site, sometimes will got this error:\r\n\r\n```log\r\n✓ building client + server bundles...\r\n✖ rendering pages...\r\nbuild error:\r\nCannot read properties of undefined (reading 'some')\r\nTypeError: Cannot read properties of undefined (reading 'some')\r\n at isChildActive (file:///mnt/disk/MAIN/read/.vitepress/.temp/app.js:2935:28)\r\n at file:///mnt/disk/MAIN/read/.vitepress/.temp/app.js:2937:43\r\n at ReactiveEffect.fn (/mnt/disk/MAIN/read/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:928:13)\r\n at ReactiveEffect.run (/mnt/disk/MAIN/read/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:162:19)\r\n at get value [as value] (/mnt/disk/MAIN/read/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:940:109)\r\n at file:///mnt/disk/MAIN/read/.vitepress/.temp/app.js:2942:127\r\n at renderComponentSubTree (/mnt/disk/MAIN/read/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:442:9)\r\n at renderComponentVNode (/mnt/disk/MAIN/read/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:386:12)\r\n at ssrRenderComponent (/mnt/disk/MAIN/read/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:84:10)\r\n at file:///mnt/disk/MAIN/read/.vitepress/.temp/app.js:2974:19\r\nerror: script \"build\" exited with code 1\r\n```\r\n\r\nDidnot know how to figure it out.\n\n### Reproduction\n\nhttps://github.com/tianheg/read/tree/0a2c670076d0bec5db10500807eb4c31bb5c80da\n\n### Expected behavior\n\nbuild succeed every time\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.10 Arch Linux\r\n CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz\r\n Memory: 13.31 GB / 23.36 GB\r\n Container: Yes\r\n Shell: 5.9 - /usr/bin/zsh\r\nBinaries:\r\n Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node\r\n npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm\r\n bun: 1.1.22 - /usr/bin/bun\r\nnpmPackages:\r\n vitepress: ^1.3.2 => 1.3.2\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3094],{"name":3020,"color":3021},4130,"bug: Repeated builds doesn't always succeed every time","2024-09-04T04:43:02Z","https://github.com/vuejs/vitepress/issues/4130",0.69328743,{"description":3101,"labels":3102,"number":3104,"owner":3023,"repository":3024,"state":3025,"title":3105,"updated_at":3106,"url":3107,"score":3108},"### Describe the bug\n\n在使用 `vitepress v1.0.0-alpha.8` 版本在构建项目之后打包会抛出异常错误信息,导致打包失败:\r\n\r\n经过测试,在 `vitepress v1.0.0-alpha.5` 以后的版本中都存在这个问题\r\n\r\n```shell\r\nPS D:\\项目-我的\\vitepress-demo> pnpm build \r\n\r\n> vitepress-demo@ build D:\\项目-我的\\vitepress-demo\r\n> vitepress build docs\r\n\r\nvitepress v1.0.0-alpha.8\r\nbuild error:\r\n Error: EPERM: operation not permitted, symlink 'D:\\项目-我的\\vitepress-demo\\node_modules\\.pnpm\\vue@3.2.3 at linkVue (file:///D:/%E9%A1%B9%E7%9B%AE-%E6%88%91%E7%9A%84/vitepress-demo/node_modules/.pnpm/vitepress@1.0.0-alpha.8/node_modules/vitepress/dist/node/serve-cd8de79e.js:40713:11)\r\n at build (file:///D:/%E9%A1%B9%E7%9B%AE-%E6%88%91%E7%9A%84/vitepress-demo/node_modules/.pnpm/vitepress@1.0.0-alpha.8/node_modules/vitepress/dist/node/serve-cd8de79e.js:40646:21)\r\n at processTicksAndRejections (node:internal/process/task_queues:96:5) { errno: -4048,\r\n syscall: 'symlink', code: 'EPERM',\r\n path: 'D:\\\\项目-我的\\\\vitepress-demo\\\\node_modules\\\\.pnpm\\\\vue@3.2.37\\\\node_modules\\\\vue',\r\n dest: 'D:\\\\项目-我的\\\\vitepress-demo\\\\docs\\\\node_modules\\\\vue'\r\n}\r\n ELIFECYCLE Command failed with exit code 1.\r\n```\n\n### Reproduction\n\n初始化项目\r\n\r\n```shell\r\npnpm init\r\n```\r\n向package.json添加一些脚本\r\n\r\n```json\r\n \"scripts\": {\r\n \"dev\": \"vitepress dev docs\",\r\n \"build\": \"vitepress build docs\",\r\n \"serve\": \"vitepress serve docs\"\r\n },\r\n```\r\n\r\n```\r\npnpm i vitepress vue\r\n\r\nmkdir docs && echo '# Hello VitePress' > docs/index.md\r\n\r\npnpm build\r\n```\n\n### Expected behavior\n\n构建成功\n\n### System Info\n\n```shell\nPS D:\\项目-我的\\vitepress-demo> pnpm build \r\n\r\n> vitepress-demo@ build D:\\项目-我的\\vitepress-demo\r\n> vitepress build docs\r\n\r\nvitepress v1.0.0-alpha.8\r\nbuild error:\r\n Error: EPERM: operation not permitted, symlink 'D:\\项目-我的\\vitepress-demo\\node_modules\\.pnpm\\vue@3.2.3 at linkVue (file:///D:/%E9%A1%B9%E7%9B%AE-%E6%88%91%E7%9A%84/vitepress-demo/node_modules/.pnpm/vitepress@1.0.0-alpha.8/node_modules/vitepress/dist/node/serve-cd8de79e.js:40713:11)\r\n at build (file:///D:/%E9%A1%B9%E7%9B%AE-%E6%88%91%E7%9A%84/vitepress-demo/node_modules/.pnpm/vitepress@1.0.0-alpha.8/node_modules/vitepress/dist/node/serve-cd8de79e.js:40646:21)\r\n at processTicksAndRejections (node:internal/process/task_queues:96:5) { errno: -4048,\r\n syscall: 'symlink', code: 'EPERM',\r\n path: 'D:\\\\项目-我的\\\\vitepress-demo\\\\node_modules\\\\.pnpm\\\\vue@3.2.37\\\\node_modules\\\\vue',\r\n dest: 'D:\\\\项目-我的\\\\vitepress-demo\\\\docs\\\\node_modules\\\\vue'\r\n}\r\n ELIFECYCLE Command failed with exit code 1.\n```\n\n\n### Additional context\n\n\r\n\r\n\r\n\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3103],{"name":3084,"color":3085},1209,"Build failed 构建失败","2023-01-21T14:26:59Z","https://github.com/vuejs/vitepress/issues/1209",0.6936063,{"description":3110,"labels":3111,"number":3115,"owner":3023,"repository":3024,"state":3025,"title":3116,"updated_at":3117,"url":3118,"score":3119},"### Describe the bug\n\n当我使用vitepress打包时,报错:\r\n$ vitepress build docs\r\n\r\n vitepress v1.0.0-rc.40\r\n\r\n⠏ building client + server bundles...\r\n(!) Some chunks are larger than 500 kB after minification. Consider:\r\n- Using dynamic import() to code-split the application\r\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\r\n- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.\r\n[commonjs--resolver] Missing \"./server-renderer\" specifier in \"vue\" package\r\n✖ building client + server bundles...\r\nbuild error:\r\nError: Missing \"./server-renderer\" specifier in \"vue\" package\r\n at e (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:21914:25)\r\n at n (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:21914:627)\r\n at o (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:21914:1297)\r\n at resolveExportsOrImports (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:29466:20)\r\n at resolveDeepImport (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:29485:31)\r\n at tryNodeResolve (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:29210:20)\r\n at Object.resolveId (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:28978:28)\r\n at Object.handler (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:67383:19)\r\n at file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/rollup/dist/es/shared/node-entry.js:18642:40 \r\n at async PluginDriver.hookFirstAndGetPlugin (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/rollup/dist/es/shared/node-entry.js:18542:28)\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n\n### Reproduction\n\nyarn docs:build\n\n### Expected behavior\n\n打包完成\n\n### System Info\n\n```Text\nnode: 18.19.0\r\nvitepress:v1.0.0-rc.40\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3112],{"name":3113,"color":3114},"need more info","bdbefc",3492,"vitepress打包报错","2024-02-21T00:04:28Z","https://github.com/vuejs/vitepress/issues/3492",0.69374067,["Reactive",3121],{},["Set"],["ShallowReactive",3124],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fe4ufa1NhJC0PkOa7Tu-C2SWHUavVSTTwYPgwGPpuNLA":-1},"/vuejs/vitepress/1526"]