\r\n\r\nbut in Layout.vue it uses Header and Header uses themeConfig that is a Symbol: \r\n```vue\r\n// Layout.vue\r\n\u003Ctemplate>\r\n \u003CHeader :nav=\"Navlist\">\u003C/Header>\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\nimport Header from \"../header/index.vue\";\r\n\u003C/script>\r\n// Header.vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport { inject, computed } from \"vue\";\r\nimport { themeConfig } from \"../../compositions/configProvider\"; // Notice this line\r\n\r\nconst theme = inject(themeConfig)!; // Notice this line\r\n```\r\nIn Header.vue, themeConfig exists in myTheme/src/compositions/configProvider.ts, \r\nbut in .vitepress/cache/deps/myTheme.js, it also exits a themeConfig.\r\ntwo themeConfig, two Symbol.\r\n***In the result***, provide/inject is fail.\r\n\r\n\r\nIn development this is bad, in production, the configProvider module is not extracted, the themeConfig variable is unique.\n\n### Reproduction\n\nas mentioned earlier\n\n### Expected behavior\n\nIn development, some es module that come from node_modules ain't extracted, the variable don't be duplicated.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22000\r\n Binaries:\r\n Node: 18.16.0\r\n pnpm: 8.6.0\r\n npmPackages:\r\n vitepress: 1.0.0-rc.31\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.",[2890,2893],{"name":2891,"color":2892},"need more info","bdbefc",{"name":2868,"color":2869},3292,"Theme is made into npm package, if use the theme, Symbol is duplicated in dev.","2024-03-07T11:19:22Z","https://github.com/vuejs/vitepress/issues/3292",0.79078674,{"description":2900,"labels":2901,"number":2906,"owner":2871,"repository":2872,"state":2873,"title":2907,"updated_at":2908,"url":2909,"score":2910},"### Describe the bug\r\n\r\n当我在使用动态路由的功能的时候,开发状态下是正常运行的,如下方的配置\r\n\r\n\r\n\r\n\r\n`export default {\r\n paths() {\r\n return [\r\n { params: { pkg: '../svgui/important/' }},\r\n { params: { pkg: '../toolkit/important/' }},\r\n ]\r\n }\r\n}`\r\n\r\n我在当前目录的上级中的两个目录中分别用当前的md文件生成了两个文件,开发环境一切正常。\r\n但打包之后,对应目录的文件生成了,但是内容却是404。\r\n\r\n### Reproduction\r\n\r\n无\r\n\r\n### Expected behavior\r\n\r\n希望能改进后,开发环境和生产环境表现一致。\r\n\r\n### System Info\r\n\r\n```Text\r\nnode 18.19 \r\nwindows\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.",[2902,2905],{"name":2903,"color":2904},"bug: pending triage","e99695",{"name":2868,"color":2869},4200,"动态路由打包后遇到的bug,开发环境正常","2024-10-26T17:17:22Z","https://github.com/vuejs/vitepress/issues/4200",0.79189086,{"description":2912,"labels":2913,"number":2914,"owner":2871,"repository":2872,"state":2915,"title":2916,"updated_at":2917,"url":2918,"score":2919},"### Description\n\nCurrently, a `vitepress` site is configured through a centralized monolithic configuration entry. This makes it difficult to apply fine grained configuration alternation for a specific part of the website.\n\nFor example, to achieve multilingual support, the official documentation had to organize it's configuration as follows:\n\n```plaintext\ndocs/.vitepress/config\n├── en.ts\n├── es.ts\n├── fa.ts\n├── index.ts\n├── ko.ts\n├── pt.ts\n├── ru.ts\n├── shared.ts\n└── zh.ts\n```\n\nIn addition to the organization of the configuration files, the UI components have to be rewritten to provide locale support. For example, the search box component has to provide `locales` configuration entry and programmatically derive current locale using global state. These extra burdens will likely add up and become unmaintainable in the near future.\n\n### Describe the solution you'd like\n\nWe can instead provide a distributed configuration hierarchy based on the same folder structure used to organize markdown contents.\n\nFor example, the multilingal support can be achieved as follows:\n\n```plaintext\ndocs\n├── .vitepress\n│ ├── config.ts # Global configuration (root)\n│ └── ...\n├── en\n│ ├── config.ts # English specific configuration\n│ ├── index.md\n│ └── ...\n├── zh\n│ ├── config.ts # Chinese specific configuration\n│ ├── index.md\n│ └── ...\n└── ...\n```\n\nIn the example above, `docs/en/config.ts` only applies to pages under `docs/en/` directory, and the same can be said for other language specific configuration files.\n\n### Additional Benefits\n\nAlmost any configuration can be fine-adjusted in the suggested architecture without specific adaptation. Features added in the future will also be automatically compatible. This will replace the `locale` entry in the current configuration interface.\n\nAs an example, I simply added [6 lines of code](https://github.com/zhangyx1998/vitepress/commit/c3c0d71d1d5ee6244e6b51abef4bbead713aac03#diff-169e70e8b8105432b9949c9ab7ca95265c4ed4476b7056f05f50cf21b50bedbdR44-R49) in `docs/zh/config.ts` and made a Chinese version of the 404 page, effective for ANY page under the `/zh/` path:\n\n| Default 404 Page (English) | Chinese Specific 404 Page |\n|:---:|:---:|\n|\u003Cimg width=\"612\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e60478b8-bf79-4c9f-a409-2dcf04eee7c7\" />|\u003Cimg width=\"612\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e408b294-1471-4703-b7b4-8d21a6ccd5be\" />|\n|[preview link](https://deploy-preview-4660--vitepress-docs.netlify.app/404)|[preview link](https://deploy-preview-4660--vitepress-docs.netlify.app/zh/404)|\n\nThis is currently **impossible** because `NotFound.vue` does not provide an locale configuration interface.\nAfter introducing the proposed feature, it **automatically** supports multi-language - _without changing one line of code inside it_!\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] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [x] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],4659,"closed","Multi-layer hierarchical configuration overloading","2025-04-15T17:13:25Z","https://github.com/vuejs/vitepress/issues/4659",0.6607208,{"description":2921,"labels":2922,"number":2924,"owner":2871,"repository":2872,"state":2915,"title":2925,"updated_at":2926,"url":2927,"score":2928},"### Describe the bug\n\n- Local\n\n\n\n- VitePress\n\n\n### Reproduction\n\nFor example:\n\n```\n## jifa-jpackage.{sh | bat}\n```\n\n### Expected behavior\n\nnormal display\n\n### System Info\n\n```Text\nSystem:\n OS: macOS 15.4\n CPU: (10) arm64 Apple M1 Pro\n Memory: 108.19 MB / 16.00 GB\n Shell: 5.9 - /bin/zsh\n Binaries:\n Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node\n npm: 10.9.0 - ~/.nvm/versions/node/v20.15.0/bin/npm\n Browsers:\n Chrome: 133.0.6943.55\n Edge: 133.0.3065.69\n Safari: 18.4\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.",[2923],{"name":2903,"color":2904},4670,"Parsing exception when there is a '|' in the title","2025-04-03T03:23:04Z","https://github.com/vuejs/vitepress/issues/4670",0.7005149,{"description":2930,"labels":2931,"number":2933,"owner":2871,"repository":2872,"state":2915,"title":2934,"updated_at":2935,"url":2936,"score":2937},"### Describe the bug\n\n如题,我准备使用vitepress开发一个组件库文档,但每次更改md代码时,日志里虽然显示已经热重载成功,,但页面并没有热重载,只能我手动刷新。 \n\n我尝试清理vitepress缓存,更换不同设备,或者重新安装所有依赖都没有解决。\n\n### Reproduction\n\n可复现仓库:https://github.com/xinnian999/arto-ui\n\n先 pnpm i \n然后 pnpm build\n然后 pnpm dev:docs \n可复现\n\n### Expected behavior\n\n更改md代码时,页面可以自动热重载,不需要 我手动刷新 \n\n### System Info\n\n```Text\nSystem:\n OS: macOS 12.6.5\n CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz\n Memory: 324.78 MB / 16.00 GB\n Shell: 5.8.1 - /bin/zsh\nBinaries:\n Node: 20.18.0 - ~/.nvm/versions/node/v20.18.0/bin/node\n npm: 10.8.2 - ~/.nvm/versions/node/v20.18.0/bin/npm\n pnpm: 8.15.4 - /usr/local/bin/pnpm\nBrowsers:\n Chrome: 135.0.7049.85\n Safari: 17.0\n```\n\n### Additional context\n\n\u003Cimg width=\"1440\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/97616e9a-c200-471a-8346-42a288f61baa\" /> 如图,我在代码里修改标题为Demo3333 浏览器发起了热重载请求,但是页面不会自动更新\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.",[2932],{"name":2903,"color":2904},4690,"热更新失效","2025-04-15T06:05:35Z","https://github.com/vuejs/vitepress/issues/4690",0.7411585,{"description":2939,"labels":2940,"number":2944,"owner":2871,"repository":2872,"state":2915,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Describe the bug\n\n\r\n\r\nno Ctrl+Space autocomplete on anything in the `export default { ... }` block in `theme/index.ts`\r\n\r\n```ts\r\n// https://vitepress.dev/guide/custom-theme\r\nimport { h } from 'vue'\r\nimport Theme from 'vitepress/theme'\r\nimport './style.css'\r\n\r\nexport default {\r\n extends: Theme,\r\n Layout: () => {\r\n return h(Theme.Layout, null, {\r\n // https://vitepress.dev/guide/extending-default-theme#layout-slots\r\n })\r\n },\r\n enhanceApp({ app, router, siteData }) {\r\n // ...\r\n app.\r\n // ^ NO autocomplete here 😢\r\n }\r\n}\r\n```\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-bjyf4o?file=.vitepress%2Ftheme%2Findex.ts\n\n### Expected behavior\n\n\r\n\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (2) 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.9.2 - /usr/local/bin/pnpm\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.22 => 1.0.0-rc.22\n```\n\n\n### Additional context\n\ni think the solution is to add a `satisfies import('vitepress').Theme` or similar in the docs examples and in the `vitepress init` wizard\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.",[2941],{"name":2942,"color":2943},"contribution welcome","11E4B8",3116,"no autocomplete on enhanceApp() or other things in theme/index.ts export default","2023-10-30T00:04:37Z","https://github.com/vuejs/vitepress/issues/3116",0.7634468,{"description":2950,"labels":2951,"number":2956,"owner":2871,"repository":2872,"state":2915,"title":2957,"updated_at":2958,"url":2959,"score":2960},"### Describe the bug\n\nIf deploy from local Mac - all is ok\r\nBut if deploy(from docker CI GitLab) - error in rollup package\r\n\r\n\n\n### Reproduction\n\n`npm run docs:build`\n\n### Expected behavior\n\nNo error is needed\n\n### System Info\n\n```Text\nRunning with gitlab-runner 16.11.0~pre.21.gaa21be2d (aa21be2d)\r\n on blue-4.saas-linux-small-amd64.runners-manager.gitlab.com/default\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.",[2952,2955],{"name":2953,"color":2954},"upstream","BF29ED",{"name":2868,"color":2869},3812,"Deploy error","2024-07-16T04:42:14Z","https://github.com/vuejs/vitepress/issues/3812",0.77169114,{"description":2962,"labels":2963,"number":2967,"owner":2871,"repository":2872,"state":2915,"title":2968,"updated_at":2969,"url":2970,"score":2971},"### Describe the bug\n\n\r\n\n\n### Reproduction\n\nhttps://github.com/meedfine/server-fs-allow.git\r\ntest win10,win11, it happened\r\n\r\n1. pnpm run docs\r\n2. visit http://localhost:5173/\r\n3.close\r\n4. pnpm run docs\r\nthen will happen,or retry 3,4\r\n\r\n\r\nhttps://user-images.githubusercontent.com/35157761/201807046-c6e534ae-722a-4149-86f0-aab839296381.mp4\r\n\r\n\n\n### Expected behavior\n\nwork well\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19043\r\n CPU: (4) x64 Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz\r\n Memory: 9.72 GB / 15.87 GB\r\n Binaries:\r\n Node: 16.14.2 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 8.5.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 78.0.3904.108\r\n Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.42)\r\n Internet Explorer: 11.0.19041.1566\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.",[2964],{"name":2965,"color":2966},"build","377ba8",1608,"mono+dev+enhanceApp+fs.server.strict: sometimes run error","2023-01-21T14:20:33Z","https://github.com/vuejs/vitepress/issues/1608",0.7717076,["Reactive",2973],{},["Set"],["ShallowReactive",2976],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fJ61YZ3f-6rNmuWZm_GRfEZ0IRuRUmTsQnYWVD_w7ENw":-1},"/vuejs/vitepress/4716"]