\r\n\n\n### Expected behavior\n\nnormal\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) 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.20.3 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 10.2.3 - /usr/local/bin/npm\r\n pnpm: 8.15.6 - /usr/local/bin/pnpm\r\n npmPackages:\r\n vitepress: latest => 1.3.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.",[2902],{"name":2868,"color":2869},4238,"Error occurred when using team components","2024-10-07T04:45:56Z","https://github.com/vuejs/vitepress/issues/4238",0.68262297,{"description":2909,"labels":2910,"number":2914,"owner":2871,"repository":2872,"state":2873,"title":2915,"updated_at":2916,"url":2917,"score":2918},"### Is your feature request related to a problem? Please describe.\n\nI recently upgraded my project to use Vite `v6`. However, I encountered type conflicts between VitePress and my project due to VitePress using Vite `v5`. The error message is as follows:\n\n```bash\nType 'import(\"/code/node_modules/vite/dist/node/index\").PluginOption' is not assignable to type 'import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").PluginOption'.\n Type 'Plugin\u003Cany>' is not assignable to type 'PluginOption'.\n Type 'import(\"/code/node_modules/vite/dist/node/index\").Plugin\u003Cany>' is not assignable to type 'import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").Plugin\u003Cany>'.\n Types of property 'apply' are incompatible.\n Type '\"serve\" | \"build\" | ((this: void, config: import(\"/code/node_modules/vite/dist/node/index\").UserConfig, env: import(\"/code/node_modules/vite/dist/node/index\").ConfigEnv) => boolean) | undefined' is not assignable to type '\"serve\" | \"build\" | ((this: void, config: import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").UserConfig, env: import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").ConfigEnv) => boolean) | undefined'.\n Type '(this: void, config: UserConfig, env: ConfigEnv) => boolean' is not assignable to type '\"serve\" | \"build\" | ((this: void, config: UserConfig, env: ConfigEnv) => boolean) | undefined'.\n Type '(this: void, config: import(\"/code/node_modules/vite/dist/node/index\").UserConfig, env: import(\"/code/node_modules/vite/dist/node/index\").ConfigEnv) => boolean' is not assignable to type '(this: void, config: import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").UserConfig, env: import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").ConfigEnv) => boolean'.\n Types of parameters 'config' and 'config' are incompatible.\n Type 'import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").UserConfig' is not assignable to type 'import(\"/code/node_modules/vite/dist/node/index\").UserConfig'.\n Types of property 'plugins' are incompatible.\n Type 'import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").PluginOption[] | undefined' is not assignable to type 'import(\"/code/node_modules/vite/dist/node/index\").PluginOption[] | undefined'.\n Type 'import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").PluginOption[]' is not assignable to type 'import(\"/code/node_modules/vite/dist/node/index\").PluginOption[]'.\n Type 'import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").PluginOption' is not assignable to type 'import(\"/code/node_modules/vite/dist/node/index\").PluginOption'.\n Type 'Plugin\u003Cany>' is not assignable to type 'PluginOption'.\n Type 'import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").Plugin\u003Cany>' is not assignable to type 'import(\"/code/node_modules/vite/dist/node/index\").Plugin\u003Cany>'.\n Types of property 'apply' are incompatible.\n Type '\"serve\" | \"build\" | ((this: void, config: import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").UserConfig, env: import(\"/code/node_modules/vitepress/node_modules/vite/dist/node/index\").ConfigEnv) => boolean) | undefined' is not assignable to type '\"serve\" | \"build\" | ((this: void, config: import(\"/code/node_modules/vite/dist/node/index\").UserConfig, env: import(\"/code/node_modules/vite/dist/node/index\").ConfigEnv) => boolean) | undefined'.\n Type '(this: void, config: UserConfig, env: ConfigEnv) => boolean' is not assignable to type '\"serve\" | \"build\" | ((this: void, config: UserConfig, env: ConfigEnv) => boolean)\n```\n\n### Describe the solution you'd like\n\nTo resolve this, could you please upgrade VitePress to use Vite `v6`? This will help avoid type conflicts and ensure compatibility with projects using the latest version of Vite.\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\nThe plugins causing this issue are [`vite-plugin-vue-devtools`](https://www.npmjs.com/package/vite-plugin-vue-devtools) and [`vite-plugin-vuetify`](https://www.npmjs.com/package/vite-plugin-vuetify). These plugins are used in the Vite configuration within VitePress:\n\n```ts\nexport default defineConfig({\n ...\n vite: {\n ...\n plugins: [\n vueDevTools(),\n vuetify({\n autoImport: true,\n styles: { configFile: \"../../src/styles/settings.scss\" }\n })\n ],\n ...\n})\n```\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.",[2911],{"name":2912,"color":2913},"build","377ba8",4494,"Upgrade VitePress to use Vite `v6`","2025-01-30T04:43:08Z","https://github.com/vuejs/vitepress/issues/4494",0.69545895,{"description":2920,"labels":2921,"number":2923,"owner":2871,"repository":2872,"state":2873,"title":2924,"updated_at":2925,"url":2926,"score":2927},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug**\r\nAfter running npx vitepress, I open the browser and load the address of http://localhost:3000, but I get a error.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\nPS D:\\桌面\\demo> npx vitepress\r\nvitepress v0.5.0\r\nvite v1.0.0-rc.4\r\nlistening at http://localhost:3000\r\n[vite] Failed to resolve module import \"vue/dist/vue.runtime.esm-bundler.js.0.0-rc.5@vuedist\u000bue.runtime.esm-bundler.js\". (imported by /@app/components/Debug.vue)\r\n\r\n**Expected behavior**\r\nGetting \"Hello Vitepress\" in browser.\r\n\r\n**System Info**\r\n- vitepress version: v0.5.0\r\n- vite version: v1.0.0-rc.4\r\n- Node version: 12.14.0\r\n- OS version:10.0.19041 暂缺 Build 19041\r\n\r\n**Additional context**\r\n尤大大,I am you big fan.\r\n",[2922],{"name":2868,"color":2869},65,"服务启动之后,进入地址报错","2023-01-21T16:25:36Z","https://github.com/vuejs/vitepress/issues/65",0.69679517,{"description":2929,"labels":2930,"number":2932,"owner":2871,"repository":2872,"state":2873,"title":2933,"updated_at":2934,"url":2935,"score":2936},"### Describe the bug\n\nI want to use the vue component in vitepress. I have read the documentation on the official website, but when I do it, I encounter an error like this.\r\n```bash\r\n[plugin:vite:vue] Tags with side effect (\u003Cscript> and \u003Cstyle>) are ignored in client component templates.\r\n```\r\n\r\nI don't understand what I'm encountering, I just want to achieve the effect here in this vue document\r\n\r\n> https://cn.vuejs.org/guide/reusability/composables.html#vs-react-hooks\r\n\r\n\r\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-dn63jg?file=docs%2Fhooks%2FuseMouse.js,docs%2Fexample.md\n\n### Expected behavior\n\nThe documentation on the official website makes me understand the difficulty or the need for a better demo?\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (20) x64 13th Gen Intel(R) CoreT i7-13800H\r\n Memory: 17.07 GB / 31.74 GB\r\n Binaries:\r\n Node: 20.11.0 - ~\\AppData\\Local\\pnpm\\node.EXE\r\n npm: 10.2.4 - ~\\AppData\\Local\\pnpm\\npm.CMD\r\n pnpm: 8.14.1 - ~\\AppData\\Local\\pnpm\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (120.0.2210.133)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: 1.0.0-rc.39 => 1.0.0-rc.39\n```\n\n\n### Additional context\n\nPlease tell me the correct way to write it, thank you\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.",[2931],{"name":2868,"color":2869},3485,"Using vue to report errors in markdown","2024-01-29T00:04:28Z","https://github.com/vuejs/vitepress/issues/3485",0.69748145,{"description":2938,"labels":2939,"number":2941,"owner":2871,"repository":2872,"state":2873,"title":2942,"updated_at":2943,"url":2944,"score":2945},"### Describe the bug\r\n\r\n\r\n`config.ts`\r\n```ts\r\nexport default defineConfig({\r\n vite: {\r\n css: {\r\n postcss: {\r\n plugins: [\r\n postcssIsolateStyles({\r\n includeFiles: [/vp-doc\\.css/]\r\n }),\r\n ],\r\n },\r\n }\r\n})\r\n```\r\n\r\n### Reproduction\r\n\r\nSee above\r\n\r\n### Expected behavior\r\n\r\nNo error\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz\r\n Memory: 38.35 GB / 63.84 GB\r\n Binaries:\r\n Node: 18.16.0 - C:\\NodeJS\\node.EXE\r\n Yarn: 1.22.19 - C:\\NodeJS\\yarn.CMD\r\n npm: 9.8.1 - C:\\NodeJS\\npm.CMD\r\n pnpm: 8.7.0 - C:\\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.9 => 1.0.0-rc.9\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.",[2940],{"name":2868,"color":2869},2867,"`postcssIsolateStyles` type issue with inline postcss plugin config in `vite` configs","2023-09-05T00:04:09Z","https://github.com/vuejs/vitepress/issues/2867",0.6975295,{"description":2947,"labels":2948,"number":2950,"owner":2871,"repository":2872,"state":2873,"title":2951,"updated_at":2952,"url":2953,"score":2954},"### Describe the bug\n\nWhen I integrate VitePress into a Vue + TypeScript project created with Vite, VitePress fails to start if the @vitejs/plugin-vue plugin is included in the plugins array of vite.config.ts. However, VitePress starts successfully if I remove the @vitejs/plugin-vue plugin from the configuration.\n\n### Reproduction\n\n1. Create a Vue + TypeScript project using Vite.\r\n2. Integrate VitePress into the project.\r\n3. Include @vitejs/plugin-vue in the plugins array of vite.config.ts.\r\n4. Attempt to start VitePress, which results in an error and prevents it from starting.\r\n5. Remove @vitejs/plugin-vue from vite.config.ts.\r\n6. VitePress starts successfully without the plugin.\n\n### Expected behavior\n\nVitePress should be able to start without any issues even with @vitejs/plugin-vue included in the vite.config.ts configuration.\n\n### System Info\n\n```Text\nNode.js 版本:18.16.1\r\nnpm/yarn/pnpm 版本:pnpm-9.2.0\r\nVite 版本:6.0.5\r\nVitePress 版本:1.5.0\r\n操作系统:macOS Sequoia 15.2\n```\n\n\n### Additional context\n\n\r\n\r\n[stackblitz demo](https://stackblitz.com/edit/vitejs-vite-ykugpvjm?file=README.md)\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.",[2949],{"name":2868,"color":2869},4442,"VitePress fails to start with @vitejs/plugin-vue in Vite config","2025-01-01T04:43:15Z","https://github.com/vuejs/vitepress/issues/4442",0.6987003,{"description":2956,"labels":2957,"number":2958,"owner":2871,"repository":2872,"state":2873,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### Describe the bug\n\n\r\n\r\n我的组件库是基于element ui 二次封装 正常打包 且在项目内可以使用\r\n在使用vitepress 开发文档时 运行无任何问题,能正常显示组件\r\n可是打包一堆问题\r\n\n\n### Reproduction\n\n使用element 封装 打包 嵌入vitepress\r\n\n\n### Expected behavior\n\n预期打包成功\n\n### System Info\n\n```shell\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension \".css\" for /Users/allen/Desktop/ode/turborepo/node_modules/.pnpm/registry.npmmirror.com+element-plus@2.2.17_vue@3.2.40/node_modules/element-plus/theme-chalk/el-cascader.css\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.",[],1465,"vitepress 打包错误","2023-01-21T14:23:01Z","https://github.com/vuejs/vitepress/issues/1465",0.6992004,["Reactive",2964],{},["Set"],["ShallowReactive",2967],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fOKYiGx-X2P-w_6BzKqeYsJMnOWdKas-fO7Qh63QxiFM":-1},"/vuejs/vitepress/2968"]