\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.",[3034],{"name":3035,"color":3036},"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.6600262,{"description":3043,"labels":3044,"number":3055,"owner":3024,"repository":3025,"state":3026,"title":3056,"updated_at":3057,"url":3058,"score":3059},"### Describe the bug\n\n当xxx.md中引用了图片,而图片的名字中含有空格则build失败\r\n如图:\r\n\u003Cimg width=\"791\" alt=\"WX20220308-210322@2x\" src=\"https://user-images.githubusercontent.com/85027237/157245257-cb9faa7b-edef-4c3d-9afa-a86068e89ad6.png\">\r\n\r\n图片名字如下:\r\n`Screenshot 2021-07-05 at 12.53.29.png`\r\n\r\n在xxx.md中去掉相关以下内容 build 成功。\r\n``\n\n### Reproduction\n\nyarn build:docs\n\n### Expected behavior\n\n希望有空可以优化下。\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.0.1\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz\r\n Memory: 16.57 MB / 8.00 GB\r\n Shell: 3.2.57 - /bin/bash\r\n Binaries:\r\n Node: 16.13.1 - /usr/local/bin/node\r\n Yarn: 1.5.1 - /usr/local/bin/yarn\r\n npm: 8.1.2 - /usr/local/bin/npm\r\n Browsers:\r\n Chrome: 93.0.4577.82\r\n Edge: 99.0.1150.36\n```\n\n\n### Additional context\n\n_No response_\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.",[3045,3046,3049,3052],{"name":3035,"color":3036},{"name":3047,"color":3048},"has-workaround","1B4515",{"name":3050,"color":3051},"upstream","BF29ED",{"name":3053,"color":3054},"stale","ededed",573,"unable to use assets or markdown files with space in name","2023-10-28T00:04:00Z","https://github.com/vuejs/vitepress/issues/573",0.6693476,{"description":3061,"labels":3062,"number":3066,"owner":3024,"repository":3025,"state":3026,"title":3067,"updated_at":3068,"url":3069,"score":3070},"### Describe the bug\n\nWhen using vitepress to package and build, it is found that \"build error:\r\n\r\nError: Whitespace was expected.\"\n\n### Reproduction\n\n1. Create a new md file\r\n2. The written content contains\u003Cscript>content\r\n3. Build\n\n### Expected behavior\n\nSuccessful Build Project\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 3.10 CentOS Linux 7 (Core)\r\n CPU: (1) x64 AMD EPYC 7K62 48-Core Processor\r\n Memory: 328.55 MB / 990.87 MB\r\n Container: Yes\r\n Shell: 4.2.46 - /bin/bash\r\n Binaries:\r\n Node: 16.16.0 - /usr/bin/node\r\n Yarn: 1.22.19 - /usr/bin/yarn\r\n npm: 8.14.0 - /usr/bin/npm\r\n npmPackages:\r\n vitepress: ^0.7.2 => 0.7.2\n```\n\n\n### Additional context\n\nbuilding client bundle...\r\nLanguage does not exist: npm\r\nLanguage does not exist: code\r\nLanguage does not exist: \u003Cscript\r\nbuild error:\r\n Error: Whitespace was expected.\r\n at error (/www/wwwroot/server/blog/node_modules/rollup/dist/shared/rollup.js:5252:30)\r\n at throwPluginError (/www/wwwroot/server/blog/node_modules/rollup/dist/shared/rollup.js:17916:12)\r\n at Object.error (/www/wwwroot/server/blog/node_modules/rollup/dist/shared/rollup.js:18523:24)\r\n at Object.error (/www/wwwroot/server/blog/node_modules/rollup/dist/shared/rollup.js:18085:38)\r\n at /www/wwwroot/server/blog/node_modules/rollup-plugin-vue/dist/index.js:211:52\r\n at Array.forEach (\u003Canonymous>)\r\n at Object.transform (/www/wwwroot/server/blog/node_modules/rollup-plugin-vue/dist/index.js:211:28)\r\n at /www/wwwroot/server/blog/node_modules/rollup/dist/shared/rollup.js:18724:25 {\r\n id: '/www/wwwroot/server/blog/docs/9777e974-d9f8-468f-9859-eb078bcf5b8d.md',\r\n plugin: 'vue',\r\n pluginCode: '15',\r\n frame: '',\r\n parserError: SyntaxError: Whitespace was expected.\r\n at createCompilerError (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:16:19)\r\n at emitError (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:1187:29)\r\n at parseAttributes (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:941:13)\r\n at parseTag (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:857:17)\r\n at parseElement (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:807:21)\r\n at parseChildren (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:650:28)\r\n at parseElement (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:816:22)\r\n at parseChildren (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:650:28)\r\n at parseElement (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:816:22)\r\n at parseChildren (/www/wwwroot/server/blog/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:650:28) {\r\n code: 15,\r\n loc: { start: [Object], end: [Object], source: '' }\r\n },\r\n loc: {\r\n file: '/www/wwwroot/server/blog/docs/9777e974-d9f8-468f-9859-eb078bcf5b8d.md',\r\n line: 110,\r\n column: 35\r\n },\r\n hook: 'transform',\r\n code: 'PLUGIN_ERROR',\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.",[3063],{"name":3064,"color":3065},"need more info","bdbefc",1526,"When using vitepress to package and build, it is found that \"build error: Error: Whitespace was expected.\"","2023-01-21T14:23:03Z","https://github.com/vuejs/vitepress/issues/1526",0.67184013,{"description":3072,"labels":3073,"number":3075,"owner":3024,"repository":3025,"state":3026,"title":3076,"updated_at":3077,"url":3078,"score":3079},"### Describe the bug\n\nImage wasn't inlined, see https://stackblitz.com/edit/vite-upxxuh?file=package.json,vite.config.ts:\r\n\r\n\u003Cimg width=\"1919\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/3367820/7ab7ef71-c29e-4a24-9f96-36d06441e7b9\">\r\n\n\n### Reproduction\n\nsee https://stackblitz.com/edit/vite-upxxuh?file=package.json,vite.config.ts:\r\n\r\n\u003Cimg width=\"1919\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/3367820/7ab7ef71-c29e-4a24-9f96-36d06441e7b9\">\n\n### Expected behavior\n\nthe image should be base64 inlined according to https://vitepress.dev/guide/asset-handling#referencing-static-assets\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 18.18.0 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.4.2 - /usr/local/bin/npm\r\n pnpm: 8.10.5 - /usr/local/bin/pnpm\r\n npmPackages:\r\n vitepress: v1.0.0-beta.7 => 1.0.0-beta.7\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.",[3074],{"name":3021,"color":3022},3370,"assets Inline doesn't work?","2023-12-30T00:04:35Z","https://github.com/vuejs/vitepress/issues/3370",0.6811571,{"description":3081,"labels":3082,"number":3086,"owner":3024,"repository":3025,"state":3026,"title":3087,"updated_at":3088,"url":3089,"score":3090},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug**\r\nIn the markdown file, When reference a image file with encoded URL, it works in the dev mode, but it would faild to build.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. a image file named `image (01).png`.\r\n1. a markdown file with content like this: ``\r\n1. run `vitepress build`\r\n\r\n**Expected behavior**\r\nShould build successfully.\r\n\r\n**System Info**\r\n- vitepress version: 0.11.5\r\n- vite version: 2.0.0-beta.62\r\n- Node version: 2.0.0-beta.62\r\n- OS version: Windows 10\r\n",[3083],{"name":3084,"color":3085},"duplicate","cfd3d7",220,"can not handle encoded image URLs in build mode","2023-01-21T16:23:56Z","https://github.com/vuejs/vitepress/issues/220",0.68160945,{"description":3092,"labels":3093,"number":3096,"owner":3024,"repository":3025,"state":3026,"title":3097,"updated_at":3098,"url":3099,"score":3100},"### Describe the bug\r\n\r\nI use some image in vue component, by using\r\n```js\r\nnew URL('@theme/public/my-image.jpg', import.meta.url).href\r\n```\r\nit works while `dev`, but not work while `preview` (after `build`), in the html file, it looks like this, \r\n```html\r\n\u003Cimg src=\"file://home/user/project/.vitepress/.temp/public/my-image.jpg\" />\r\n```\r\nrather than\r\n```html\r\n\u003Cimg src=\"/assets/my-image.47d9f72.jpg\" />\r\n```\r\n\r\nIs there some configurations or processing to resolve this problem?\r\n\r\n### Reproduction\r\n\r\nnone.\r\n\r\n### Expected behavior\r\n\r\nbuild successfully\r\n\r\n### System Info\r\n\r\n```sh\r\nOS: Windows 10/Ubuntu 20.04\r\nVitePress: 1.0.0-alpha75\r\nVue: 3.2.47\r\nelement-plus: 2.3.4\r\npnpm: 8.5.0\r\nnodejs: 18.16.0\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3094,3095],{"name":3021,"color":3022},{"name":3053,"color":3054},2357,"After build, the src of img tag as 'file://home/user/xxx/.vitepress/.temp/xxx.png'","2023-08-12T00:04:09Z","https://github.com/vuejs/vitepress/issues/2357",0.6876241,{"description":3102,"labels":3103,"number":3105,"owner":3024,"repository":3025,"state":3026,"title":3106,"updated_at":3107,"url":3108,"score":3109},"### Describe the bug\n\n\u003Cimg width=\"269\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/61684763/10622fbc-efb0-4dbd-a342-5c4e73ed04a0\">\r\n\u003Cimg width=\"1272\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/61684763/42577ef3-634d-459e-bf05-97ada3afef7b\">\r\n以前旧版本是没有这个问题的。升级后才有的。\n\n### Reproduction\n\n升级vitepress打包部署后出现的\n\n### Expected behavior\n\n望能修复正常\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.4.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 57.69 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v16.14.0/bin/yarn\r\n npm: 9.8.0 - ~/.nvm/versions/node/v16.14.0/bin/npm\r\n Watchman: 2023.03.27.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Chrome: 115.0.5790.170\r\n Safari: 16.5.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.",[3104],{"name":3021,"color":3022},2772,"升级vitepress后部署到阿里云服务器后,刷新页面会404","2023-08-18T00:04:13Z","https://github.com/vuejs/vitepress/issues/2772",0.69053346,{"description":3111,"labels":3112,"number":3115,"owner":3024,"repository":3025,"state":3026,"title":3116,"updated_at":3117,"url":3118,"score":3119},"### Describe the bug\n\nrun vitepress build error:\r\n> docs@1.0.0 docs:build E:\\yto-engine\\docs\r\n> vitepress build\r\n\r\n\r\n vitepress v1.0.0-alpha.74\r\n\r\n⠴ building client + server bundles...\r\n(!) Some chunks are larger than 500 kBs 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✓ building client + server bundles...\r\nbuild error:\r\nTypeError: Cannot assign to read only property '__esModule' of object '#\u003CObject>'\r\n at file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7100:20\r\n at Array.forEach (\u003Canonymous>)\r\n at file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7098:29\r\n at requireVue_cjs_prod (file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7102:5)\r\n at file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7179:22\r\n at file:///E:/yto-engine/docs/.vitepress/.temp/plugin-vue_export-helper.b00f2ce5.js:7183:3\r\n at ModuleJob.run (node:internal/modules/esm/module_job:198:25)\r\n at async Promise.all (index 0)\r\n at async ESMLoader.import (node:internal/modules/esm/loader:385:24)\r\n at async build (file:///E:/yto-engine/node_modules/.pnpm/vitepress@1.0.0-alpha.74/node_modules/vitepress/dist/node/serve-c662a607.js:41704:24)\r\n ELIFECYCLE Command failed with exit code 1.\r\n ELIFECYCLE Command failed with exit code 1.\n\n### Reproduction\n\ngit-clone:https://github.com/Hollelihanqi/ui.git\r\nstep1:\r\npnpm install\r\nstep2:\r\npnpm docs:build\n\n### Expected behavior\n\nvirepress build success\n\n### System Info\n\n```sh\nnodejs 16.15.0\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.",[3113,3114],{"name":3021,"color":3022},{"name":3053,"color":3054},2337,"build error","2023-09-25T00:04:32Z","https://github.com/vuejs/vitepress/issues/2337",0.69483405,{"description":3121,"labels":3122,"number":3123,"owner":3024,"repository":3025,"state":3026,"title":3124,"updated_at":3125,"url":3126,"score":3127},"### Describe the bug\n\n在我编写一个.md文件时我是这么写的:\r\n\r\n```\r\n\u003Cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/NoNameGMM/SignInForMiraiMC?style=flat&label=License\r\n\"/>\r\n\u003Cimg alt=\"Minecraft Version\" src=\"https://img.shields.io/badge/Minecraft-1.8--1.20-blue?style=flat&color=green\"/>\r\n\u003Cimg alt=\"GitHub Release\" src=\"https://img.shields.io/github/v/release/NoNameGMM/SignInForMiraiMC?style=flat&label=Release\"/>\r\n```\r\n\r\n正常来说应该是这样:\r\n\u003Cimg width=\"249\" alt=\"photo1\" src=\"https://github.com/vuejs/vitepress/assets/109721871/d5c41be5-f3df-43f7-bd88-a2f12a11490f\">\r\n\r\n可是vitepress的效果是:\r\n\u003Cimg width=\"107\" alt=\"屏幕截图 2024-03-03 200157\" src=\"https://github.com/vuejs/vitepress/assets/109721871/a5b20517-2e3f-4fb0-9390-1f06cdbbebd6\">\r\n\r\n\r\n\n\n### Reproduction\n\n同上\n\n### Expected behavior\n\n我想要实现正常markdown的效果\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics\r\n Memory: 1.68 GB / 13.86 GB\r\n Binaries:\r\n Node: 20.10.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 10.2.3 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.15.4 - ~\\AppData\\Roaming\\npm\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (122.0.2365.59)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.44 => 1.0.0-rc.44\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.",[],3631,"使用shields.io徽标时图片自动换行","2024-03-11T00:04:39Z","https://github.com/vuejs/vitepress/issues/3631",0.6960957,["Reactive",3129],{},["Set"],["ShallowReactive",3132],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fKesJQ1bOMrwDFzuiNOX8XuOrzceMm8cTYaYQ6XT_Om8":-1},"/vuejs/vitepress/2596"]