\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.",[2882,2885],{"name":2883,"color":2884},"need more info","bdbefc",{"name":2869,"color":2870},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.76497823,{"description":2892,"labels":2893,"number":2898,"owner":2872,"repository":2873,"state":2874,"title":2899,"updated_at":2900,"url":2901,"score":2902},"### Is your feature request related to a problem? Please describe.\r\n\r\nSupport syntax highlight on inline code in docs.\r\n\r\nThe picture below is from an HTML code snippet using Prism and a syntax like this:\r\n```html\r\n\u003Ccode class=\"language-js\">if (user.actionsHistory[0].type ===\"undo\")\u003C/code>\r\n```\r\n\r\n\r\n\r\n\r\nAnd the picture below is the same writing with Vitepress:\r\n```md\r\n`if (user.actionsHistory.at(-1).type ===\"undo\")`\r\n```\r\n\r\n\r\n\r\n\r\nAs you see the Syntax Highlighting is gone. Could be cool to have an automatic inline Syntax Highlighting for md docs.\r\n\r\nHere is another example for a CSS code snippet. On the left using markdown and viteperss, and on the right, using html and prism:\r\n\r\n\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nThere'v been some suggestions before on vitepress: https://github.com/vuejs/vitepress/issues/1343 and vuepress: https://github.com/vuejs/vuepress/issues/1212 on how the syntax could look like. I personally do not have a preference. But I believe this syntax:\r\n```md\r\nAnd `if (someCondition === true)`{lang=js}\r\n```\r\nallows for future expansions:\r\n```md\r\nAnd `if (someCondition === true)`{lang=js,someFlag=false,someOtherFlag=true}\r\n```\r\n\r\n### Describe alternatives you've considered\r\n\r\nHave not tried anything yet. Just faced this requirement while trying out vitepress. If I ever came up with a solution that did or did not work will share here.\r\n\r\n### Additional context\r\n\r\nThere was already 1 issue about this: https://github.com/vuejs/vitepress/issues/1343, but was closed as \"Not seeing any demand for this\". So I re-created this issue as a demand.\r\n\r\n### Validations\r\n\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] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2894,2897],{"name":2895,"color":2896},"theme","0754FB",{"name":2869,"color":2870},3093,"Feature Request: Inline Syntax Highlight","2025-03-02T18:10:32Z","https://github.com/vuejs/vitepress/issues/3093",0.7718473,{"description":2904,"labels":2905,"number":2907,"owner":2872,"repository":2873,"state":2908,"title":2909,"updated_at":2910,"url":2911,"score":2912},"### Is your feature request related to a problem? Please describe.\r\n\r\nCan the Type.js plugin be built-in to make the homepage look better, or can an entrance be added for developers to run custom JS files for some custom operations\r\n\r\n### Describe the solution you'd like\r\n\r\n[See this doc](https://steven.codes/typerjs/)\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\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] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2906],{"name":2869,"color":2870},4086,"closed","Support more plugins","2025-03-08T04:41:54Z","https://github.com/vuejs/vitepress/issues/4086",0.72735023,{"description":2914,"labels":2915,"number":2919,"owner":2872,"repository":2873,"state":2908,"title":2920,"updated_at":2921,"url":2922,"score":2923},"### Describe the bug\n\nWhen I tried to change the style of the `image` on the homepage, there were some situations where I encountered problems.\r\nunder Path: \r\n> .vitepress\\theme\\styles\\vars.css\r\n```css\r\n@keyframes logo-spin {\r\n from {\r\n transform: rotate(0deg);\r\n }\r\n\r\n to {\r\n transform: rotate(360deg);\r\n }\r\n}\r\n\r\n.image-src {\r\n animation: logo-spin infinite 20s linear;\r\n}\r\n```\n\n### Reproduction\n\nstackblitz : https://stackblitz.com/edit/vite-ib4s68?file=README.md\r\n\r\nrepo and explanation : https://github.com/RSS1102/vite-ib4s68\r\n\r\n\n\n### Expected behavior\n\nOn the mobile end\r\n\r\n\r\nOn the PC end\r\n\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics\r\n Memory: 2.19 GB / 13.86 GB\r\n Binaries:\r\n Node: 18.12.1 - E:\\node\\node.EXE\r\n Yarn: 1.22.19 - E:\\node\\yarn.CMD\r\n npm: 9.4.2 - E:\\node\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.1555.0), Chromium (112.0.1722.39)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.64 => 1.0.0-alpha.64\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.",[2916],{"name":2917,"color":2918},"bug: pending triage","e99695",2217,"[hero] : The localization problem of `image bg '","2023-04-22T00:04:15Z","https://github.com/vuejs/vitepress/issues/2217",0.7399707,{"description":2925,"labels":2926,"number":2927,"owner":2872,"repository":2873,"state":2908,"title":2928,"updated_at":2929,"url":2930,"score":2931},"### Is your feature request related to a problem? Please describe.\r\n\r\nI would like the ability to show the aside on the left side of the document. It is currently coded to the right at all times.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nI would like to be able to set the aside location on a page by page basis. A CSS variable would go a long way here.\r\n\r\n### Describe alternatives you've considered\r\n\r\nI understand how to set it site-wide with\r\n\r\n```\r\n.aside { order: 1 !important }\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] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],2134,"Aside Location Order","2023-04-02T00:04:13Z","https://github.com/vuejs/vitepress/issues/2134",0.7422794,{"description":2933,"labels":2934,"number":2936,"owner":2872,"repository":2873,"state":2908,"title":2937,"updated_at":2938,"url":2939,"score":2940},"### Describe the bug\n\nThese two links should both load the same page, but the one with trailing slash returns 404.\r\n\r\nhttps://docs.celestia.org/developers/blobstream/\r\nhttps://docs.celestia.org/developers/blobstream\n\n### Reproduction\n\nhttps://docs.celestia.org/developers/blobstream/\r\nhttps://docs.celestia.org/developers/blobstream\n\n### Expected behavior\n\nBoth pages load https://docs.celestia.org/developers/blobstream\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.0\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 80.42 MB / 16.00 GB\r\n Shell: 3.2.57 - /bin/bash\r\n Binaries:\r\n Node: 18.12.0 - ~/.nvm/versions/node/v18.12.0/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 8.19.2 - ~/.nvm/versions/node/v18.12.0/bin/npm\r\n pnpm: 7.13.1 - /opt/homebrew/bin/pnpm\r\n Browsers:\r\n Brave Browser: 117.1.58.135\r\n Chrome: 118.0.5993.88\r\n Safari: 17.0\r\n npmPackages:\r\n vitepress: 1.0.0-rc.24 => 1.0.0-rc.24\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.",[2935],{"name":2917,"color":2918},3134,"links with trailing slash do not load","2023-11-01T00:04:41Z","https://github.com/vuejs/vitepress/issues/3134",0.74567443,{"description":2942,"labels":2943,"number":2944,"owner":2872,"repository":2873,"state":2908,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Describe the bug\n\nUse custom component with slot, When preview the build files, Got an error \"Hydration completed but contains mismatches.\" and the page content is distorted.\n\n### Reproduction\n\nDemo: [https://stackblitz.com/edit/vite-7ctcqz?file=docs/.vitepress/theme/index.js](https://stackblitz.com/edit/vite-7ctcqz?file=docs/.vitepress/theme/index.js)\r\n\r\n**Steps**\r\n\r\n- Build project\r\n- Run `npm run docs:preview`\r\n- Visit the page and click \"Get Start\" button redirect to the example page.\r\n- Refresh the example page\r\n\r\nNow I got an error \"Hydration completed but contains mismatches.\" and the page content is distorted.\n\n### Expected behavior\n\nNo errors.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H\r\n Memory: 13.25 GB / 31.73 GB\r\n Binaries:\r\n Node: 18.16.0 - D:\\Program\\NodeJs\\node.EXE\r\n npm: 9.6.5 - D:\\Program\\NodeJs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.1555.0), Chromium (112.0.1722.58)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.73 => 1.0.0-alpha.73\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.",[],2284,"Use custom component with slot, When preview the build files, Got an error \"Hydration completed but contains mismatches.\"","2023-06-08T00:04:09Z","https://github.com/vuejs/vitepress/issues/2284",0.7530287,{"description":2950,"labels":2951,"number":2953,"owner":2872,"repository":2873,"state":2908,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Describe the bug\n\n- building client + server bundles...Could not resolve './_media/ArrayList-inherit.jpg' from docs\\java\\Java基础入门\\类和实例.md\r\n✖ building client + server bundles...\r\nCould not resolve './_media/ArrayList-inherit.jpg' from docs\\java\\Java基础入门\\类和实例.md (x2)\n\n### Reproduction\n\n# markdown file path\r\ndocs/java/Java基础入门/类和实例.md\r\n\r\n# image file path\r\ndocs/java/Java基础入门/_media/ArrayList-inherit.jpg\r\n\r\n# in markdown file using\r\n``\r\n\r\nor \r\n\r\n``\r\n\r\n# then, run `yarn docs:build` building\r\ncompile error and failed\r\n```text\r\n- building client + server bundles...Could not resolve './_media/ArrayList-inherit.jpg' from docs\\java\\Java基础入门\\类和实例.md\r\n✖ building client + server bundles...\r\nCould not resolve './_media/ArrayList-inherit.jpg' from docs\\java\\Java基础入门\\类和实例.md (x2)\r\n```\r\n\r\n# other information\r\nwhen use `\u003Cimg :src=\"$withBase('./_media/ArrayList-inherit.jpg')\" alt=\"ArrayList类继承关系\" />` , no errors.\n\n### Expected behavior\n\nno errors, compile success\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz\r\n Memory: 16.46 GB / 31.85 GB\r\n Binaries:\r\n Node: 14.18.2 - E:\\apps\\node-v14\\node.EXE\r\n Yarn: 1.22.10 - E:\\apps\\node-v14\\node_global\\yarn.CMD\r\n npm: 7.20.0 - E:\\apps\\node-v14\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.50)\r\n Internet Explorer: 11.0.19041.1202\r\n npmPackages:\r\n vitepress: ^0.22.2 => 0.22.2\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\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.",[2952],{"name":2883,"color":2884},534,"in markdown file, use image file, image file exists and path correct, but image load failed","2023-01-21T14:34:14Z","https://github.com/vuejs/vitepress/issues/534",0.7537305,{"description":2959,"labels":2960,"number":2962,"owner":2872,"repository":2873,"state":2908,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Describe the bug\n\n\u003Cimg width=\"559\" alt=\"image\" src=\"https://user-images.githubusercontent.com/50388827/231996524-3bb1a93b-8a74-492f-a6d3-ca1e9e880e01.png\">\r\n\u003Cimg width=\"469\" alt=\"image\" src=\"https://user-images.githubusercontent.com/50388827/231997075-305a330e-34d2-473b-a67f-f438580ff1d8.png\">\r\n\n\n### Reproduction\n\nhttps://www.npmjs.com/package/vitepress?activeTab=code\n\n### Expected behavior\n\nfix dependence-missing problem\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 13.3.1\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 705.63 MB / 32.00 GB\r\n Shell: 3.2.57 - /bin/sh\r\n Binaries:\r\n Node: 18.14.2 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.5.0 - /usr/local/bin/npm\r\n Browsers:\r\n Safari: 16.4\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.65 => 1.0.0-alpha.65\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.",[2961],{"name":2917,"color":2918},2215,"npm pkg has no `localSearch` option & dependence `minisearch ` about localSearch","2023-04-22T00:04:16Z","https://github.com/vuejs/vitepress/issues/2215",0.75716144,["Reactive",2968],{},["Set"],["ShallowReactive",2971],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f4FgisyS8QiLXlwpWIJ9DlI8o0g5Db9i3svWsOLQdmFQ":-1},"/vuejs/vitepress/2985"]