\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.",[3072],{"name":3073,"color":3074},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.68147737,{"description":3081,"labels":3082,"number":3084,"owner":3024,"repository":3025,"state":3026,"title":3085,"updated_at":3086,"url":3087,"score":3088},"### 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.",[3083],{"name":3035,"color":3036},2772,"升级vitepress后部署到阿里云服务器后,刷新页面会404","2023-08-18T00:04:13Z","https://github.com/vuejs/vitepress/issues/2772",0.6824758,{"description":3090,"labels":3091,"number":3093,"owner":3024,"repository":3025,"state":3026,"title":3094,"updated_at":3095,"url":3096,"score":3097},"### Describe the bug\n\nWriting\r\n\r\n````\r\n```\r\n A-->B;\r\n A-->C;\r\n B-->D;\r\n C-->D;\r\n```\r\n````\r\n\r\nShould keep the indentation but the content is trimmed so it render like:\r\n\r\n\r\n````\r\n```\r\nA-->B;\r\n A-->C;\r\n B-->D;\r\n C-->D;\r\n```\r\n````\r\n\r\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-g3gqwo?file=docs%2Fexample.md\n\n### Expected behavior\n\nDoesn't trim the content and render indentation on the first line correctly.\r\n\r\n\r\n\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.4 Fedora Linux 38 (Workstation Edition)\r\n CPU: (24) x64 AMD Ryzen 9 3900XT 12-Core Processor\r\n Memory: 27.51 GB / 62.69 GB\r\n Container: Yes\r\n Shell: 5.2.15 - /bin/bash\r\n Binaries:\r\n Node: 20.6.1 - ~/.local/share/pnpm/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.1/bin/yarn\r\n npm: 9.8.1 - ~/.local/share/pnpm/npm\r\n pnpm: 8.7.6 - ~/.local/share/pnpm/pnpm\r\n Browsers:\r\n Chrome: 117.0.5938.62\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.14 => 1.0.0-rc.14\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.",[3092],{"name":3035,"color":3036},2988,"Code block content is trimmed","2023-09-27T00:04:19Z","https://github.com/vuejs/vitepress/issues/2988",0.6839135,{"description":3099,"labels":3100,"number":3102,"owner":3024,"repository":3025,"state":3026,"title":3103,"updated_at":3104,"url":3105,"score":3106},"### Describe the bug\n\nI used the document boot method and neither npm nor pnpm could run the docs:dev command properly\r\n\r\n```sh\r\nX [ERROR] \"vitepress\" resolved to an ESM file. ESM file cannot be loaded by `require`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details. [plugin externalize-deps]\r\n\r\n node_modules/.pnpm/esbuild@0.18.20/node_modules/esbuild/lib/main.js:1373:27:\r\n 1373 │ let result = await callback({\r\n ╵ ^\r\n\r\n at file:///F:/myVitepressBlog/hanwuBlog/node_modules/.pnpm/vite@4.4.9_@types+node@18.17.5/node_modules/vite/dist/node/chunks/dep-df561101.js:66190:35\r\n at requestCallbacks.on-resolve (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:1373:28)\r\n at handleRequest (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:729:19)\r\n at handleIncomingPacket (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:755:7) \r\n at Socket.readFromStdout (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:679:7) \r\n at Socket.emit (node:events:514:28)\r\n at addChunk (node:internal/streams/readable:324:12)\r\n at readableAddChunk (node:internal/streams/readable:297:9)\r\n at Readable.push (node:internal/streams/readable:234:10)\r\n at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)\r\n\r\n This error came from the \"onResolve\" callback registered here:\r\n\r\n node_modules/.pnpm/esbuild@0.18.20/node_modules/esbuild/lib/main.js:1292:20:\r\n 1292 │ let promise = setup({\r\n ╵ ^\r\n\r\n at setup (file:///F:/myVitepressBlog/hanwuBlog/node_modules/.pnpm/vite@4.4.9_@types+node@18.17.5/node_modules/vite/dist/node/chunks/dep-df561101.js:66158:27)\r\n at handlePlugins (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:1292:21)\r\n at buildOrContextImpl (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:978:5) \r\n at Object.buildOrContext (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:786:5) \r\n at F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:2177:15\r\n at new Promise (\u003Canonymous>)\r\n at Object.build (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:2176:25)\r\n at build (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:2025:51)\r\n at bundleConfigFile (file:///F:/myVitepressBlog/hanwuBlog/node_modules/.pnpm/vite@4.4.9_@types+node@18.17.5/node_modules/vite/dist/node/chunks/dep-df561101.js:66109:26)\r\n\r\n The plugin \"externalize-deps\" was triggered by this import\r\n\r\n docs/.vitepress/config.ts:1:339:\r\n 1 │ ..._import_meta_url = \"file:///F:/myVitepressBlog/hanwuBlog/docs/.vitepress/config.ts\";import { defineConfig } from 'vitepress' \r\n ╵ ~~~~~~~~~~~ \r\n\r\nfailed to load config from F:\\myVitepressBlog\\hanwuBlog\\docs\\.vitepress\\config.ts\r\nfailed to start server. error:\r\nError: Build failed with 1 error:\r\nnode_modules/.pnpm/esbuild@0.18.20/node_modules/esbuild/lib/main.js:1373:27: ERROR: [plugin: externalize-deps] \"vitepress\" resolved to an \r\nESM file. ESM file cannot be loaded by `require`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.\r\n at failureErrorWithLog (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:1649:15) \r\n at F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:1058:25\r\n at runOnEndCallbacks (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:1484:45) \r\n at buildResponseToResult (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:1056:7) \r\n at F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:1085:16\r\n at responseCallbacks.\u003Ccomputed> (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:703:9)\r\n at handleIncomingPacket (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:762:9) \r\n at Socket.readFromStdout (F:\\myVitepressBlog\\hanwuBlog\\node_modules\\.pnpm\\esbuild@0.18.20\\node_modules\\esbuild\\lib\\main.js:679:7) \r\n at Socket.emit (node:events:514:28)\r\n at addChunk (node:internal/streams/readable:324:12)\r\n ELIFECYCLE Command failed with exit code 1.\r\n\r\n\r\n```\n\n### Reproduction\n\nI started by introducing the latest vue\r\nMy version of node is v18.17.1\r\n```sh\r\nnpm create vue@latest\r\ncd vue-projecr\r\npnpm install\r\n```\r\nThen start installing vitepress with pnpm\r\n\r\n```sh\r\npnpm add -D vitepress\r\npnpm exec vitepress init\r\n```\r\n\r\n```sh\r\n┌ Welcome to VitePress! \r\n│\r\n◇ Where should VitePress initialize the config?\r\n│ ./docs\r\n│\r\n◇ Site title:\r\n│ My Awesome Project\r\n│\r\n◇ Site description:\r\n│ A VitePress Site\r\n│\r\n◇ Theme:\r\n│ Default Theme\r\n│\r\n◇ Use TypeScript for config and theme files?\r\n│ Yes\r\n│\r\n◇ Add VitePress npm scripts to package.json?\r\n│ Yes\r\n│\r\n└ Done! Now run npm run docs:dev and start writing.\r\n```\r\n\r\nWhen I run \r\n```sh\r\npnpm run docs:dev \r\n```\r\nIt doesn't work properly\r\nI don't know how to solve it\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\n\n### Expected behavior\n\nI hope it starts up properly, just like vue\n\n### System Info\n\n```sh\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics\r\n Memory: 5.94 GB / 15.86 GB\r\n Binaries:\r\n Node: 18.17.1 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 9.6.7 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.6.12 - C:\\Program Files\\nodejs\\pnpm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (116.0.1938.62) \r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: 1.0.0-rc.10 => 1.0.0-rc.10\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.",[3101],{"name":3035,"color":3036},2886,"Ignore me. This is a low-level boot problem","2023-09-08T00:04:13Z","https://github.com/vuejs/vitepress/issues/2886",0.68648404,{"description":3108,"labels":3109,"number":3111,"owner":3024,"repository":3025,"state":3026,"title":3112,"updated_at":3113,"url":3114,"score":3115},"### Describe the bug\r\n\r\nThis only happens to `pnpm`. `npm` is fine.\r\nI've no idea about this, can you please have a look?\r\n***Note: it always resolve to `v1.0.0-draft.1` with or without `lockfile`***\r\n\r\n\r\n\r\n### Reproduction\r\n\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\nResolve to `v1.0.0-beta.6`\r\n\r\n### System Info\r\n\r\n```sh\r\nN/A\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.",[3110],{"name":3035,"color":3036},2670,"[❗Bug]: `pnpm` will resolve `v1.0.0-beta.6` to `v1.0.0-draft.1`","2023-07-30T00:04:45Z","https://github.com/vuejs/vitepress/issues/2670",0.69039875,["Reactive",3117],{},["Set"],["ShallowReactive",3120],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fs7e1ZHh0mm8jeB9gsqRl9FydRRTJyiXdo4hCUtjV8U8":-1},"/vuejs/vitepress/472"]