\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.",[2920],{"name":2866,"color":2867},4238,"Error occurred when using team components","2024-10-07T04:45:56Z","https://github.com/vuejs/vitepress/issues/4238",0.70894575,{"description":2927,"labels":2928,"number":2929,"owner":2869,"repository":2870,"state":2871,"title":2930,"updated_at":2931,"url":2932,"score":2933},"### Describe the bug\n\nWhen I import PrimeVue and configure it in the theme/index.ts file, I got a error:\r\n```\r\n4:34:33 PM [vitepress] Pre-transform error: Failed to resolve entry for package \"primevue\". The package may have incorrect main/module/exports specified in its package.json: Missing \".\" specifier in \"primevue\" package\r\n4:34:33 PM [vitepress] Internal server error: Failed to resolve entry for package \"primevue\". The package may have incorrect main/module/exports specified in its package.json: Missing \".\" specifier in \"primevue\" package\r\n Plugin: vite:import-analysis\r\n ```\n\n### Reproduction\n\nCreate a vitepress project theme with custom theme:\r\n```\r\npnpm add vitepress\r\npnpm vitepress init\r\n```\r\nchoose all default but the Theme section:\r\n```\r\n◆ Theme:\r\n│ ○ Default Theme (Out of the box, good-looking docs)\r\n│ ○ Default Theme + Customization\r\n│ ● Custom Theme\r\n```\r\nthen add the PrimeVue lib:\r\n```\r\npnpm add primevue @primevue/themes\r\n```\r\nuse it in the theme/index.ts\r\n```\r\n// theme/index.ts\r\nimport Layout from './Layout.vue'\r\nimport type { Theme } from 'vitepress'\r\nimport './style.css'\r\n\r\nimport PrimeVue from \"primevue\"\r\nimport Aura from \"@primevue/themes\"\r\n\r\nexport default {\r\n\tLayout,\r\n\tenhanceApp({ app, router, siteData }) {\r\n\t\t// ...\r\n\t\tapp.use(PrimeVue, {\r\n\t\t\ttheme: {\r\n\t\t\t\tpreset: Aura\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n} satisfies Theme\r\n```\r\nthen run `pnpm docs:dev`\r\n\n\n### Expected behavior\n\nIt should be running without any error, but i got a package error.\r\nIt seems like there's some problem with `vite:import-analysis`\r\n\n\n### System Info\n\n```Text\nI tested in Arch and Windows\r\n\r\n System:\r\n OS: Linux 5.15 Arch Linux\r\n CPU: (16) x64 AMD Ryzen 7 8845H w/ Radeon 780M Graphics\r\n Memory: 5.77 GB / 7.41 GB\r\n Container: Yes\r\n Shell: 5.9 - /usr/bin/zsh\r\n Binaries:\r\n Node: 22.8.0 - ~/.local/share/pnpm/node\r\n npm: 10.8.2 - ~/.local/share/pnpm/npm\r\n pnpm: 9.10.0 - ~/.local/share/pnpm/pnpm\r\n```\r\n\r\n```\r\n System:\r\n OS: Windows 11 10.0.22631\r\n CPU: (16) x64 AMD Ryzen 7 8845H w/ Radeon 780M Graphics\r\n Memory: 4.74 GB / 15.30 GB\r\n Binaries:\r\n Node: 20.17.0 - E:\\nodejs\\node.EXE\r\n npm: 10.8.2 - E:\\nodejs\\npm.CMD\r\n pnpm: 9.10.0 - ~\\AppData\\Local\\Microsoft\\WinGet\\Links\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (127.0.2651.86)\r\n Internet Explorer: 11.0.22621.3527\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.",[],4192,"error while integrate custom theme with PrimeVue","2024-09-21T04:43:12Z","https://github.com/vuejs/vitepress/issues/4192",0.709448,{"description":2935,"labels":2936,"number":2938,"owner":2869,"repository":2870,"state":2871,"title":2939,"updated_at":2940,"url":2941,"score":2942},"### Describe the bug\n\nCheck VP types here https://arethetypeswrong.github.io/?p=vitepress%401.0.0-beta.1, `vitepress/theme-without-fonts` types for node missing.\r\n\n\n### Reproduction\n\nhttps://arethetypeswrong.github.io/?p=vitepress%401.0.0-beta.1\n\n### Expected behavior\n\nTypes should be there\n\n### System Info\n\n```sh\nNA\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.",[2937],{"name":2866,"color":2867},2415,"missing vitepress/theme-without-fonts types for node","2023-06-02T00:04:15Z","https://github.com/vuejs/vitepress/issues/2415",0.709582,{"description":2944,"labels":2945,"number":2947,"owner":2869,"repository":2870,"state":2871,"title":2948,"updated_at":2949,"url":2950,"score":2951},"### Describe the bug\n\nFor some un-explainable reason I see a mismatch between the navigation types in the distributed version of vitepress (1.0.0-alpha.1) and the current repository.\r\n\r\n\u003Cimg width=\"883\" alt=\"image\" src=\"https://user-images.githubusercontent.com/13395944/172170606-f2db5b68-3496-4e17-8b13-086925bed5c1.png\">\r\n\r\n\n\n### Reproduction\n\n- Install vitepress \"version\": \"1.0.0-alpha.1\"\r\n- Look at the default-theme.d.ts or the types in dist \r\n\n\n### Expected behavior\n\n```ts\r\n export interface NavItemWithChildren {\r\n text?: string\r\n items: NavItemWithLink[]\r\n }\r\n ```\r\n \r\n should be \r\n \r\n ```ts\r\n export interface NavItemWithChildren {\r\n text?: string\r\n items: NavItem[]\r\n }\r\n ```\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 11.5.2\r\n CPU: (8) arm64 Apple M1\r\n Memory: 106.59 MB / 8.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 17.9.0 - ~/.nvm/versions/node/v17.9.0/bin/node\r\n Yarn: 1.22.15 - ~/.nvm/versions/node/v17.9.0/bin/yarn\r\n npm: 8.5.5 - ~/.nvm/versions/node/v17.9.0/bin/npm\r\n Browsers:\r\n Chrome: 102.0.5005.61\r\n Safari: 14.1.2\r\n```\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.",[2946],{"name":2866,"color":2867},730,"Incorrect Navigation Types","2023-01-21T14:34:20Z","https://github.com/vuejs/vitepress/issues/730",0.7123933,{"description":2953,"labels":2954,"number":2955,"owner":2869,"repository":2870,"state":2871,"title":2956,"updated_at":2957,"url":2958,"score":2959},"\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\nWhen using a custom theme, importing composables like `useRoute` from `\"vitepress\"` in the Layout component also imports the styles for the default theme.\r\n\r\n**To Reproduce**\r\n\r\n1. Follow the [Getting Started guide](https://vitepress.vuejs.org/guide/getting-started.html) to create a new site\r\n2. Create `docs/.vitepress/theme/Layout.vue` with the following contents:\r\n\r\n```vue\r\n\u003Ctemplate>\r\n \u003CContent />\r\n\u003C/template>\r\n\r\n\u003Cscript setup>\r\n// import { useRoute } from \"vitepress\";\r\n// const route = useRoute();\r\n\u003C/script>\r\n```\r\n\r\n3. Create `docs/.vitepress/theme/index.js` with the following contents:\r\n\r\n```js\r\nimport Layout from \"./Layout.vue\";\r\n\r\nexport default {\r\n Layout,\r\n};\r\n```\r\n\r\n4. Run `yarn docs:dev` and open http://localhost:3000. Note the heading doesn't have any styles applied to it:\r\n\r\n\r\n\r\n5. Uncomment the lines in the `\u003Cscript setup>` section in `docs/.vitepress/theme/Layout.vue`. Note the heading now has the default styles applied to it, even though we only imported `useRoute`:\r\n\r\n\r\n\r\n**Expected behavior**\r\nThe heading should remain unstyled since we aren't explicitly importing any styles.\r\n\r\n**System Info**\r\n- vitepress version: v0.9.2\r\n- vite version: v1.0.0-rc.13\r\n- Node version: v12.20.0\r\n- OS version: macOS Catalina 10.15.7\r\n\r\n**Additional context**\r\nI had a quick look at the Vitepress code and it looks like the problem might be to do with this line: https://github.com/vuejs/vitepress/blob/309aa7a8d0e7ab08c1c9db258c74709a66b295cb/src/client/app/exports.ts#L29\r\n\r\nAdding the following to `docs/.vitepress/config.js`:\r\n\r\n```javascript\r\nmodule.exports = {\r\n alias: {\r\n \"/@default-theme/index\": \"/@theme/empty.js\",\r\n },\r\n};\r\n```\r\n\r\n...and creating an empty file `docs/.vitepress/theme/empty.js` prevents the default styles being applied.\r\n",[],182,"Importing default composables also imports default theme's styles","2023-01-21T16:23:59Z","https://github.com/vuejs/vitepress/issues/182",0.7142698,["Reactive",2961],{},["Set"],["ShallowReactive",2964],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fHOkS9nPH9_SUvt1Kk0lE2lt8ZOMw4GVpRBAMCYfg8xo":-1},"/vuejs/vitepress/3231"]