\r\n2. 配置文件如下所示:\u003Cbr /> \n\n### Expected behavior\n\n使用 Github 自带的 https://xihuanxiaorang.github.io/docs/ 访问就没有任何问题,如果是使用自定义域名 https://docs.xiaorang.fun/ 的话,样式就会丢失\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz\r\n Memory: 659.73 MB / 3.92 GB\r\n Binaries:\r\n Node: 20.11.0 - E:\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - E:\\nodejs\\node_global\\yarn.CMD\r\n npm: 10.2.4 - E:\\nodejs\\npm.CMD\r\n pnpm: 8.14.3 - E:\\nodejs\\node_global\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (120.0.2210.144)\r\n Internet Explorer: 11.0.19041.3636\r\n npmPackages:\r\n vitepress: 1.0.0-rc.40 => 1.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.",[3195],{"name":3196,"color":3197},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.68860203,{"description":3204,"labels":3205,"number":3207,"owner":3149,"repository":3150,"state":3151,"title":3208,"updated_at":3209,"url":3210,"score":3211},"### Describe the bug\n\n```\n2025-08-29T04:02:33.940Z\tInitializing build environment...\n2025-08-29T04:02:42.649Z\tSuccess: Finished initializing build environment\n2025-08-29T04:02:43.399Z\tCloning repository...\n2025-08-29T04:02:44.324Z\tNo build output detected to cache. Skipping.\n2025-08-29T04:02:44.325Z\tNo dependencies detected to cache. Skipping.\n2025-08-29T04:02:44.328Z\tDetected the following tools from environment: bun@1.2.15, nodejs@22.16.0\n2025-08-29T04:02:44.330Z\tInstalling project dependencies: bun install\n2025-08-29T04:02:44.510Z\tbun install v1.2.15 (df017990)\n2025-08-29T04:02:44.542Z\tResolving dependencies\n2025-08-29T04:02:49.243Z\tResolved, downloaded and extracted [1564]\n2025-08-29T04:02:50.893Z\tSaved lockfile\n2025-08-29T04:02:50.894Z\t\n2025-08-29T04:02:50.894Z\t+ @cloudflare/vite-plugin@1.12.1\n2025-08-29T04:02:50.894Z\t+ @tsconfig/node22@22.0.2\n2025-08-29T04:02:50.895Z\t+ @types/node@22.18.0 (v24.3.0 available)\n2025-08-29T04:02:50.895Z\t+ @vicons/fa@0.13.0\n2025-08-29T04:02:50.895Z\t+ @vitejs/plugin-vue@6.0.1\n2025-08-29T04:02:50.895Z\t+ @vitejs/plugin-vue-jsx@5.1.1\n2025-08-29T04:02:50.895Z\t+ @vue/tsconfig@0.7.0 (v0.8.1 available)\n2025-08-29T04:02:50.895Z\t+ stylus@0.64.0\n2025-08-29T04:02:50.895Z\t+ typescript@5.8.3 (v5.9.2 available)\n2025-08-29T04:02:50.896Z\t+ vite@7.1.3\n2025-08-29T04:02:50.896Z\t+ vitepress@2.0.0-alpha.12\n2025-08-29T04:02:50.896Z\t+ vue-tsc@3.0.6\n2025-08-29T04:02:50.896Z\t+ wrangler@4.33.1\n2025-08-29T04:02:50.896Z\t+ @tailwindcss/vite@4.1.12\n2025-08-29T04:02:50.896Z\t+ compressorjs@1.2.1\n2025-08-29T04:02:50.896Z\t+ dayjs@1.11.15\n2025-08-29T04:02:50.896Z\t+ hono@4.9.4\n2025-08-29T04:02:50.897Z\t+ ky@1.9.1\n2025-08-29T04:02:50.897Z\t+ naive-ui@2.42.0\n2025-08-29T04:02:50.897Z\t+ pinia@3.0.3\n2025-08-29T04:02:50.897Z\t+ pinia-plugin-persistedstate@4.5.0\n2025-08-29T04:02:50.897Z\t+ tailwindcss@4.1.12\n2025-08-29T04:02:50.897Z\t+ unplugin-auto-import@20.1.0\n2025-08-29T04:02:50.897Z\t+ unplugin-vue-components@29.0.0\n2025-08-29T04:02:50.897Z\t+ vue@3.5.20\n2025-08-29T04:02:50.897Z\t+ vue-router@4.5.1\n2025-08-29T04:02:50.898Z\t+ vue-turnstile@1.0.11\n2025-08-29T04:02:50.898Z\t\n2025-08-29T04:02:50.898Z\t357 packages installed [6.42s]\n2025-08-29T04:02:50.898Z\t\n2025-08-29T04:02:50.898Z\tBlocked 1 postinstall. Run `bun pm untrusted` for details.\n2025-08-29T04:02:50.921Z\tExecuting user build command: npx vitepress build --debug\n2025-08-29T04:02:52.089Z\t\n2025-08-29T04:02:52.089Z\t vitepress v2.0.0-alpha.12\n2025-08-29T04:02:52.089Z\t\n2025-08-29T04:02:52.093Z\t- building client + server bundles...\n2025-08-29T04:02:55.609Z\t✗ Build failed in 1.52s\n2025-08-29T04:02:55.609Z\t✗ building client + server bundles...\n2025-08-29T04:02:55.656Z\tbuild error:\n2025-08-29T04:02:55.656Z\t[vite:vue] [plugin vite:vue] node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue: At least one \u003Ctemplate> or \u003Cscript> is required in a single file component. /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\tfile: /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\t[vite:vue] [plugin vite:vue] node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue: At least one \u003Ctemplate> or \u003Cscript> is required in a single file component. /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\tfile: /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\tSyntaxError: [plugin vite:vue] node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue: At least one \u003Ctemplate> or \u003Cscript> is required in a single file component. /opt/buildhome/repo/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue\n2025-08-29T04:02:55.656Z\t at Object.parse$1 [as parse] (/opt/buildhome/repo/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:1871:7)\n2025-08-29T04:02:55.656Z\t at createDescriptor (file:///opt/buildhome/repo/node_modules/@vitejs/plugin-vue/dist/index.js:79:42)\n2025-08-29T04:02:55.657Z\t at transformMain (file:///opt/buildhome/repo/node_modules/@vitejs/plugin-vue/dist/index.js:1633:33)\n2025-08-29T04:02:55.657Z\t at Object.handler (file:///opt/buildhome/repo/node_modules/@vitejs/plugin-vue/dist/index.js:2045:27)\n2025-08-29T04:02:55.657Z\t at Object.handler (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-Bj7gA1-0.js:34329:13)\n2025-08-29T04:02:55.662Z\t at file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/node-entry.js:22395:40\n2025-08-29T04:02:55.862Z\tFailed: error occurred while running build command\n```\n\n### Reproduction\n\n`\n\n### Expected behavior\n\n`\n\n### System Info\n\n```Text\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.",[3206],{"name":3146,"color":3147},4925,"cloudflare workers delpoy error, but my local deployment is normal, how to troubleshoot.","2025-08-29T05:14:23Z","https://github.com/vuejs/vitepress/issues/4925",0.6891009,{"description":3213,"labels":3214,"number":3216,"owner":3149,"repository":3150,"state":3151,"title":3217,"updated_at":3218,"url":3219,"score":3220},"### Describe the bug\n\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-pzpqo8?file=docs%2F.vitepress%2Ftheme%2Fx.ts\r\n\r\n在 `theme/x.ts` 中引入了 `echarts` ,开发时是可以的,页面正常显示。构建时报错。\r\n\r\n\r\n\r\n**如果是一个纯 vite 项目,构建不错误**\n\n### Expected behavior\n\n正常编译不出错\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.4\r\n CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz\r\n Memory: 48.46 MB / 32.00 GB\r\n Shell: 3.2.57 - /bin/bash\r\n Binaries:\r\n Node: 16.18.1 - ~/Library/Caches/fnm_multishells/19014_1691646234602/bin/node\r\n Yarn: 1.22.19 - ~/Library/pnpm/yarn\r\n npm: 8.19.2 - ~/Library/Caches/fnm_multishells/19014_1691646234602/bin/npm\r\n pnpm: 8.6.8 - ~/Library/pnpm/pnpm\r\n npmPackages:\r\n vitepress: 1.0.0-rc.4 => 1.0.0-rc.4\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.",[3215],{"name":3146,"color":3147},2769,"引入 echarts 编译时报错","2023-08-18T00:04:16Z","https://github.com/vuejs/vitepress/issues/2769",0.6905714,{"description":3222,"labels":3223,"number":3225,"owner":3149,"repository":3150,"state":3151,"title":3226,"updated_at":3227,"url":3228,"score":3229},"### Describe the bug\r\n\r\nVitePress builds, and instantly removes the dist folder again.\r\n\r\n### Reproduction\r\n\r\nClone my [GitHub repository](https://github.com/Ahwxorg/Linkbase/), run yarn to install the dependencies and run `yarn vitepress build`.\r\n\r\n### Expected behavior\r\n\r\nVitePress successfully builds the dist/ folder.\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 13.5.2\r\n CPU: (10) arm64 Apple M2 Pro\r\n Memory: 125.69 MB / 16.00 GB\r\n Shell: 3.6.1 - /opt/homebrew/bin/fish\r\n Binaries:\r\n Node: 20.7.0 - /opt/homebrew/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 10.1.0 - /opt/homebrew/bin/npm\r\n Browsers:\r\n Safari: 16.6\r\n```\r\n\r\n\r\nAlthough I use GitHub Actions as well (see [the failed run here](https://github.com/Ahwxorg/Linkbase/actions/runs/6273423931/job/17036870482))\r\n\r\n\r\n### Additional context\r\n\r\nBuild log is the following:\r\n\r\n```sh\r\nvitepress v1.0.0-rc.20\r\n\r\n✓ building client + server bundles...\r\n✓ rendering pages...\r\nbuild complete in 1.89s.\r\n✨ Done in 2.06s.\r\n```\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.",[3224],{"name":3146,"color":3147},3040,"[Bug] VitePress won't build","2023-10-10T00:04:18Z","https://github.com/vuejs/vitepress/issues/3040",0.6909823,{"description":3231,"labels":3232,"number":3234,"owner":3149,"repository":3150,"state":3151,"title":3235,"updated_at":3236,"url":3237,"score":3238},"### Describe the bug\n\nSo I installed VitePress, but when I just wanted it to say on the home page 'Hello World', it showed this: \r\n\r\nAnd I just entered this:\r\n\r\n\r\nDon't know why, I think this is a bug\n\n### Reproduction\n\nI installed it and made an index.md file, with 'Hello World' in it.\n\n### Expected behavior\n\nJust to show 'Hello World'\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19042 \r\n CPU: (4) x64 Intel(R) Core(TM) i5-3437U CPU @ 1.90GHz\r\n Memory: 655.02 MB / 3.87 GB \r\n Binaries:\r\n Node: 16.6.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 7.16.0 - ~\\AppData\\Roaming\\npm\\npm.CMD\r\n Browsers:\r\n Chrome: 96.0.4664.110\r\n Edge: Spartan (44.19041.1266), Chromium (96.0.1054.62)\r\n Internet Explorer: 11.0.19041.1202\r\n npmPackages:\r\n vitepress: ^0.20.9 => 0.20.9\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [x] Follow our [Code of Conduct](https://vuejs.org/coc)\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.\n",[3233],{"name":3146,"color":3147},475,"Text bugging out","2023-01-21T16:04:33Z","https://github.com/vuejs/vitepress/issues/475",0.69150096,["Reactive",3240],{},["Set"],["ShallowReactive",3243],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fMT0tmC_YIgYirwzruHWexnZ-OEKfUfe8e0aLE9gZ6ck":-1},"/vuejs/vitepress/1769"]