\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.",[2917],{"name":2918,"color":2919},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.68860203,{"description":2926,"labels":2927,"number":2929,"owner":2871,"repository":2872,"state":2873,"title":2930,"updated_at":2931,"url":2932,"score":2933},"### 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.",[2928],{"name":2868,"color":2869},2769,"引入 echarts 编译时报错","2023-08-18T00:04:16Z","https://github.com/vuejs/vitepress/issues/2769",0.6905714,{"description":2935,"labels":2936,"number":2938,"owner":2871,"repository":2872,"state":2873,"title":2939,"updated_at":2940,"url":2941,"score":2942},"### 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.",[2937],{"name":2868,"color":2869},3040,"[Bug] VitePress won't build","2023-10-10T00:04:18Z","https://github.com/vuejs/vitepress/issues/3040",0.6909823,{"description":2944,"labels":2945,"number":2947,"owner":2871,"repository":2872,"state":2873,"title":2948,"updated_at":2949,"url":2950,"score":2951},"### 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",[2946],{"name":2868,"color":2869},475,"Text bugging out","2023-01-21T16:04:33Z","https://github.com/vuejs/vitepress/issues/475",0.69150096,{"description":2953,"labels":2954,"number":2956,"owner":2871,"repository":2872,"state":2873,"title":2957,"updated_at":2958,"url":2959,"score":2960},"### Describe the bug\n\nTrying to build a simple vitepress site on cloudflare is challenging. \r\n\r\nFirst took me some time to understand the `.vitepress` directory should be under another directory in order for cloud flare to find the dist. I now specify it to `docs/.vitepress/dist` and move to the next issue which maybe is related to the version of node I am running... any pointer is appreciated.\r\n\r\n```\r\n\r\n\r\n11:05:48.533 | Success: Finished cloning repository files\r\n-- | --\r\n11:05:49.195 | Installing dependencies\r\n11:05:49.207 | Python version set to 2.7\r\n11:05:52.529 | v12.18.0 is already installed.\r\n11:05:53.711 | Now using node v12.18.0 (npm v6.14.4)\r\n11:05:53.933 | Started restoring cached build plugins\r\n11:05:53.948 | Finished restoring cached build plugins\r\n11:05:54.436 | Attempting ruby version 2.7.1, read from environment\r\n11:05:58.020 | Using ruby version 2.7.1\r\n11:05:58.388 | Using PHP version 5.6\r\n11:05:58.564 | 5.2 is already installed.\r\n11:05:58.590 | Using Swift version 5.2\r\n11:05:58.590 | Installing Hugo 0.54.0\r\n11:05:59.273 | Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z\r\n11:05:59.276 | Started restoring cached go cache\r\n11:05:59.297 | Finished restoring cached go cache\r\n11:05:59.444 | go version go1.14.4 linux/amd64\r\n11:05:59.458 | go version go1.14.4 linux/amd64\r\n11:05:59.461 | Installing missing commands\r\n11:05:59.461 | Verify run directory\r\n11:05:59.461 | Executing user command: npm run docs:build\r\n11:05:59.806 | npm ERR! code ENOENT\r\n11:05:59.806 | npm ERR! syscall open\r\n11:05:59.806 | npm ERR! path /opt/buildhome/repo/package.json\r\n11:05:59.806 | npm ERR! errno -2\r\n11:05:59.807 | npm ERR! enoent ENOENT: no such file or directory, open '/opt/buildhome/repo/package.json'\r\n11:05:59.808 | npm ERR! enoent This is related to npm not being able to find a file.\r\n11:05:59.808 | npm ERR! enoent\r\n11:05:59.813 | \r\n11:05:59.813 | npm ERR! A complete log of this run can be found in:\r\n11:05:59.813 | npm ERR! /opt/buildhome/.npm/_logs/2023-03-30T02_05_59_808Z-debug.log\r\n11:05:59.821 | Failed: build command exited with code: 254\r\n11:06:00.614 | Failed: error occurred while running build command\r\n```\r\n\n\n### Reproduction\n\nYou should incur in the same issue when trying to deploy a default vitepress site to cloudflare.\n\n### Expected behavior\n\nObviously I would expect this to work.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.6\r\n CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 2.76 GB / 32.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 19.8.1 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.5.1 - /usr/local/bin/npm\r\n Browsers:\r\n Chrome: 111.0.5563.146\r\n Safari: 16.3\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.61 => 1.0.0-alpha.61\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.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2955],{"name":2868,"color":2869},2166,"cloudflare deployment causes a npm ERR! code ENOENT","2023-04-07T00:04:07Z","https://github.com/vuejs/vitepress/issues/2166",0.6939226,["Reactive",2962],{},["Set"],["ShallowReactive",2965],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fMT0tmC_YIgYirwzruHWexnZ-OEKfUfe8e0aLE9gZ6ck":-1},"/vuejs/vitepress/1769"]