\r\n \u003CEmpty />\r\n \u003C/div>\r\n\u003C/template>\r\n\u003Cscript lang=\"ts\" setup>\r\nimport { Empty } from 'ant-design-vue';\r\nimport { ref } from \"vue\"\r\nconst visible = ref(true)\r\n\r\nconst handleClick = () => {\r\n visible.value = !visible.value\r\n\r\n}\r\n\u003C/script>\r\n\r\n```\r\n\n\n### Reproduction\n\n# Steps\r\n1. build. \r\nvitepress build docs.\r\n2. serve.\r\nvitepress serve docs. \r\n3. Click Button in the page.\r\n\r\n\r\n# Problem I face \r\nEverything is normal at the first.But when I click the button to change the element in the page, 'Empty' component cannot be rendered.\r\n\u003Cimg width=\"1672\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/43191187/00a0982a-5c11-47bc-adad-8e887380493a\">\r\n\n\n### Expected behavior\n\n# Expected. \r\nNo matter re-render times, I hope it can be rendered normal.\r\n\r\n\u003Cimg width=\"1676\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/43191187/74275c38-190d-49b5-a53a-4f23e2d123c7\">\r\n\n\n### System Info\n\n```Text\nThere's no any extra info.\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.",[2909],{"name":2910,"color":2911},"bug: pending triage","e99695",3718,"closed","ant-design-vue some components cannot render twice under vitepress build.","2024-04-28T12:25:19Z","https://github.com/vuejs/vitepress/issues/3718",0.7514932,{"description":2919,"labels":2920,"number":2924,"owner":2869,"repository":2870,"state":2913,"title":2925,"updated_at":2926,"url":2927,"score":2928},"### Describe the bug\n\nI'm encountering the type issue of `markdown-it` when using the `markdown.config` property in the vitepress config file.\r\nI have 3 plugins, all with issues.\r\nI reproduced the simplest one in the reproduction below. I believe they have the same problem.\r\nI'll log all the issues I'm having in Additional Context field, but please have a look at the reproduction below, thanks.\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-qvbnhu?file=docs%2F.vitepress%2Fconfig.ts\n\n### Expected behavior\n\nNo error is raised.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz\r\n Memory: 7.04 GB / 31.69 GB\r\n Binaries:\r\n Node: 20.11.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.2.4 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 9.1.4 - ~\\AppData\\Local\\pnpm\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (123.0.2420.97)\r\n Internet Explorer: 11.0.22621.3527\r\n npmPackages:\r\n vitepress: ^1.2.2 => 1.2.2\n```\n\n\n### Additional context\n\n```shell\r\nPS C:\\Dev\\docs> npm run build\r\n\r\n> build\r\n> vue-tsc && vitepress build\r\n\r\n.vitepress/config.ts:113:14 - error TS2769: No overload matches this call.\r\n Overload 1 of 3, '(plugin: PluginSimple): MarkdownIt', gave the following error.\r\n Argument of type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\").PluginSimple' is not assignable to parameter of type 'PluginSimple'.\r\n Types of parameters 'md' and 'md' are incompatible.\r\n Type 'MarkdownIt' is not assignable to type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\")'.\r\n The types returned by 'inline.ruler.getRules(...)' are incompatible between these types.\r\n Type 'RuleInline[]' is not assignable to type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\").ParserInline.RuleInline[]'.\r\n Type 'RuleInline' is not assignable to type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\").ParserInline.RuleInline'.\r\n Types of parameters 'state' and 'state' are incompatible.\r\n Type 'StateInline' is not assignable to type 'StateInline'. Two different types with this name exist, but they are unrelated.\r\n The types of 'md.utils.lib.mdurl' are incompatible between these types.\r\n Property 'Url' is missing in type '{ decode: { (str: string, exclude?: string | undefined): string; defaultChars: string; componentChars: string; }; encode: { (str: string, exclude?: string | undefined, keepEscaped?: boolean | undefined): string; defaultChars: string; componentChars: string; }; format(url: Omit\u003C...>): string; parse(url: string | Url,...' but required in type 'typeof mdurl'.\r\n Overload 2 of 3, '(plugin: PluginWithOptions\u003Cany>, options?: any): MarkdownIt', gave the following error.\r\n Argument of type 'PluginSimple' is not assignable to parameter of type 'PluginWithOptions\u003Cany>'.\r\n Types of parameters 'md' and 'md' are incompatible.\r\n Type 'MarkdownIt' is not assignable to type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\")'.\r\n Overload 3 of 3, '(plugin: PluginWithParams, ...params: any[]): MarkdownIt', gave the following error.\r\n Argument of type 'PluginSimple' is not assignable to parameter of type 'PluginWithParams'.\r\n Types of parameters 'md' and 'md' are incompatible.\r\n Type 'MarkdownIt' is not assignable to type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\")'.\r\n\r\n113 md.use(containerPlugin)\r\n ~~~~~~~~~~~~~~~\r\n\r\n node_modules/vitepress/dist/node/index.d.ts:393:12\r\n 393 export { mdurl_Url as Url, mdurl_decode as decode, mdurl_encode as encode, mdurl_format as format, mdurl_parse as parse };\r\n ~~~~~~~~~~~~~~~~\r\n 'Url' is declared here.\r\n\r\n.vitepress/config.ts:114:14 - error TS2769: No overload matches this call.\r\n Overload 1 of 3, '(plugin: PluginSimple): MarkdownIt', gave the following error.\r\n Argument of type '(md: MarkdownIt) => void' is not assignable to parameter of type 'PluginSimple'.\r\n Types of parameters 'md' and 'md' are incompatible.\r\n Type 'MarkdownIt' is not assignable to type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\")'.\r\n Overload 2 of 3, '(plugin: PluginWithOptions\u003Cany>, options?: any): MarkdownIt', gave the following error.\r\n Argument of type '(md: MarkdownIt) => void' is not assignable to parameter of type 'PluginWithOptions\u003Cany>'.\r\n Types of parameters 'md' and 'md' are incompatible.\r\n Type 'MarkdownIt' is not assignable to type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\")'.\r\n Overload 3 of 3, '(plugin: PluginWithParams, ...params: any[]): MarkdownIt', gave the following error.\r\n Argument of type '(md: MarkdownIt) => void' is not assignable to parameter of type 'PluginWithParams'.\r\n Types of parameters 'md' and 'md' are incompatible.\r\n Type 'MarkdownIt' is not assignable to type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\")'.\r\n\r\n114 .use(externalLinkIconPlugin)\r\n ~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\r\n.vitepress/config.ts:115:14 - error TS2769: No overload matches this call.\r\n Overload 1 of 3, '(plugin: PluginSimple): MarkdownIt', gave the following error.\r\n Argument of type 'import(\"C:/Dev/nf-docs/node_modules/@types/markdown-it/dist/index.cjs\").PluginSimple' is not assignable to parameter of type 'PluginSimple'.\r\n Overload 2 of 3, '(plugin: PluginWithOptions\u003Cany>, options?: any): MarkdownIt', gave the following error.\r\n Argument of type 'PluginSimple' is not assignable to parameter of type 'PluginWithOptions\u003Cany>'.\r\n Overload 3 of 3, '(plugin: PluginWithParams, ...params: any[]): MarkdownIt', gave the following error.\r\n Argument of type 'PluginSimple' is not assignable to parameter of type 'PluginWithParams'.\r\n\r\n115 .use(requestBlockPlugin);\r\n ~~~~~~~~~~~~~~~~~~\r\n\r\n\r\n\r\nFound 3 errors in the same file, starting at: .vitepress/config.ts:113\r\n```\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.",[2921],{"name":2922,"color":2923},"upstream","BF29ED",3935,"Markdown-it plugin type issue","2024-06-12T04:41:49Z","https://github.com/vuejs/vitepress/issues/3935",0.78452235,{"description":2930,"labels":2931,"number":2937,"owner":2869,"repository":2870,"state":2913,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Describe the bug\r\n\r\nI am trying to use vite [alias overwrite component](https://vitepress.dev/guide/extending-default-theme#overriding-internal-components). Such as `VPNavbar`. Works fine in the page display\r\n\r\nBut after building I found that the `dist/assets/style.css` file still retains the styles in the component that origin component style.\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/vite-vfhomn?file=docs%2F.vitepress%2Fconfig.ts\r\n\r\n`npm run build` and check style file `dist/assets/style.css`\r\n\r\n\u003Cimg width=\"1624\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/40693636/85469507-fa9b-4e8f-b76a-a2ee2fc86bbb\">\r\n\r\n\r\n### Expected behavior\r\n\r\nRemove origin component's style\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 13.4.1\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 115.05 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 16.20.1 - /opt/homebrew/opt/node@16/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 8.19.4 - /opt/homebrew/opt/node@16/bin/npm\r\n Browsers:\r\n Chrome: 116.0.5845.179\r\n Safari: 16.5.2\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nI'm not sure if this is a bug or the vite alias design, but it's look like not a perfect overwrite. I want to get a css asset as small as possible.\r\n\r\nIf there is a configuration that can be removed, welcome share with me. 🙌\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.",[2932,2933,2936],{"name":2910,"color":2911},{"name":2934,"color":2935},"has-workaround","1B4515",{"name":2866,"color":2867},2945,"Vite alias overwrite component. The origin component css save in bundler assert.","2024-05-05T04:41:48Z","https://github.com/vuejs/vitepress/issues/2945",0.8001598,{"description":2943,"labels":2944,"number":2948,"owner":2869,"repository":2870,"state":2913,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\nSince the \"alpha.37\" version, the normal algolia search has not returned results, probably because i18n has been supported, there are some changes in the path, and there is a problem with the search request parameters. I tested that there is no problem before the \"alpha.36\" version. Algolia after application can return search results, ordinary algolia cannot\n\n### Reproduction\n\npnpm add --save vitepress\n\n### Expected behavior\n\nsearch should return result\n\n### System Info\n\n```shell\nChrome\n```\n\n\n### Additional context\n\nhttps://lucky-design.vercel.app/ \r\nThis is my url, using the \"alpha.45\" version\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.",[2945],{"name":2946,"color":2947},"docs","0075ca",1935,"algolia Search can’t return result","2023-07-27T00:04:24Z","https://github.com/vuejs/vitepress/issues/1935",0.80524457,{"description":2954,"labels":2955,"number":2958,"owner":2869,"repository":2870,"state":2913,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### Describe the bug\n\nSidebar group headings can be linked. If a sidebar group is linked, visiting the page it's linked to will uncollapse the group. The effect is unexpected and can result in undesired uncollapsings.\n\n### Reproduction\n\n1. With the released version, replace `docs/.vitepress/config/en.ts`'s `sidebarGuide` with the following.\r\n\t```js\r\n\tfunction sidebarGuide(): DefaultTheme.SidebarItem[] {\r\n\t return [\r\n\t {\r\n\t text: 'Introduction',\r\n\t collapsed: true,\r\n\t items: [\r\n\t {\r\n\t text: 'Group heading linked to \"What is VitePress?\"',\r\n\t link: 'what-is-vitepress',\r\n\t collapsed: true,\r\n\t items: [\r\n\t {\r\n\t text: 'Another group heading linked to \"What is VitePress?\"',\r\n\t link: 'what-is-vitepress',\r\n\t collapsed: true,\r\n\t items: [\r\n\t {\r\n\t text: 'What is VitePress?',\r\n\t link: 'what-is-vitepress',\r\n\t },\r\n\t ],\r\n\t },\r\n\t ],\r\n\t },\r\n\t { text: 'Getting Started', link: 'getting-started' },\r\n\t { text: 'Routing', link: 'routing' },\r\n\t { text: 'Deploy', link: 'deploy' }\r\n\t ]\r\n\t },\r\n\t { text: 'What is VitePress?', link: 'what-is-vitepress',},\r\n\t {\r\n\t text: 'Writing',\r\n\t collapsed: false,\r\n\t items: [\r\n\t { text: 'Markdown Extensions', link: 'markdown' },\r\n\t { text: 'Asset Handling', link: 'asset-handling' },\r\n\t { text: 'Frontmatter', link: 'frontmatter' },\r\n\t { text: 'Using Vue in Markdown', link: 'using-vue' },\r\n\t { text: 'Internationalization', link: 'i18n' }\r\n\t ]\r\n\t },\r\n\t {\r\n\t text: 'Customization',\r\n\t collapsed: false,\r\n\t items: [\r\n\t { text: 'Using a Custom Theme', link: 'custom-theme' },\r\n\t {\r\n\t text: 'Extending the Default Theme',\r\n\t link: 'extending-default-theme'\r\n\t },\r\n\t { text: 'Build-Time Data Loading', link: 'data-loading' },\r\n\t { text: 'SSR Compatibility', link: 'ssr-compat' },\r\n\t { text: 'Connecting to a CMS', link: 'cms' }\r\n\t ]\r\n\t },\r\n\t {\r\n\t text: 'Experimental',\r\n\t collapsed: false,\r\n\t items: [\r\n\t { text: 'MPA Mode', link: 'mpa-mode' },\r\n\t { text: 'Sitemap Generation', link: 'sitemap-generation' }\r\n\t ]\r\n\t },\r\n\t { text: 'Config & API Reference', base: '/reference/', link: 'site-config' }\r\n\t ]\r\n\t}\r\n\t```\r\n1. Run `pnpm run docs`\r\n1. Open `http://localhost:\u003Cyour port>/guide/routing` in a browser\r\n2. Click on the _text_ of the second sidebar item, \"Group heading linked to \"What is VitePress?\"\r\n3. Confirm that it and its child group opens.\n\n### Expected behavior\n\nClicking a sidebar group's linked heading opens the link without toggling the group.\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.3.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 191.89 MB / 16.00 GB\r\n Shell: 5.9 - /opt/homebrew/bin/zsh\r\n Binaries:\r\n Node: 18.12.0 - ~/.asdf/installs/nodejs/18.12.0/bin/node\r\n Yarn: 1.22.22 - /opt/homebrew/bin/yarn\r\n npm: 8.19.2 - ~/.asdf/installs/nodejs/18.12.0/bin/npm\r\n pnpm: 8.15.6 - ~/Library/pnpm/pnpm\r\n bun: 1.1.4 - ~/.bun/bin/bun\r\n Browsers:\r\n Brave Browser: 123.1.64.122\r\n Chrome: 123.0.6312.124\r\n Edge: 123.0.2420.97\r\n Safari: 17.3.1\r\n```\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.",[2956,2957],{"name":2910,"color":2911},{"name":2866,"color":2867},3805,"sidebar: unexpected toggling of groups with headings linked to the current page","2024-07-02T04:41:59Z","https://github.com/vuejs/vitepress/issues/3805",0.8058249,{"description":2964,"labels":2965,"number":2966,"owner":2869,"repository":2870,"state":2913,"title":2967,"updated_at":2968,"url":2969,"score":2970},"### Is your feature request related to a problem? Please describe.\n\nI would like to use the default theme for my website, but I would like to build the VPTeamMemberItem component differently. \r\nNevertheless, I would still like to use the underlying components.\n\n### Describe the solution you'd like\n\nExport VPLink & VPSocialLink(s) component\n\n### Describe alternatives you've considered\n\n_No response_\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] 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.",[],4179,"Export VPLink & VPSocialLink(s) component","2024-09-13T04:43:06Z","https://github.com/vuejs/vitepress/issues/4179",0.82478315,["Reactive",2972],{},["Set"],["ShallowReactive",2975],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fM1AAOyx_7KzotEiZvTHn29_63JzDk0XMxjraCmiN7y0":-1},"/vuejs/vitepress/4613"]