```\r\n\r\nIt doesn't seem to be correct:\r\n\r\n\r\n\r\nHow to make it look correct, just like on the homepage?:\r\n\r\n\r\n\r\n",[2901],{"name":2869,"color":2870},4273,"How to use default Vue components elsewhere","2024-12-03T17:27:39Z","https://github.com/vuejs/vitepress/issues/4273",0.7670117,{"description":2908,"labels":2909,"number":2915,"owner":2872,"repository":2873,"state":2874,"title":2916,"updated_at":2917,"url":2918,"score":2919},"### Describe the bug\n\nRecently, I wrote posts in [my vitepress blog](https://github.com/Locietta/blog-lost-pieces) with lots of LaTeX. While these LaTeX-heavy pages can be built and bundled without issue, I periodically get OOM when edit those pages with `vitepress dev`. (OOM doesn't happen on the initial launch, it often occurs after several edits. Is there memory leaking during hmr or something?)\r\n\r\nCrash Log:\r\n```\r\n\u003C--- Last few GCs --->\r\nince start of marking 674 ms) (average mu = 0.373[8712:000001C960111000] 1240866 ms: Mark-Compact (reduce) 4093.1 (4097.3) -> 4092.2 (4097.3) MB, pooled: 0 MB, 610.60 / 0.00 ms (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 615 ms) (average mu = 0.394[8712:000001C960111000] 1241870 ms: Mark-Compact 4092.2 (4097.3) -> 4092.2 (4098.3) MB, pooled: 0 MB, 594.69 / 0.00 ms (average mu = 0.401, current mu = 0.408) allocation failure; GC in old space requested\r\n\r\n\r\n\u003C--- JS stacktrace --->\r\n\r\nFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory\r\n----- Native stack trace -----\r\n\r\n 1: 00007FF75678199B node::SetCppgcReference+15707\r\n 2: 00007FF7566EB928 DSA_meth_get_flags+97560\r\n 3: 00007FF7573EC801 v8::Isolate::ReportExternalAllocationLimitReached+65\r\n 4: 00007FF7573D9046 v8::Function::Experimental_IsNopFunction+2710\r\n 5: 00007FF75720FED0 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+34016\r\n 6: 00007FF7572091CD v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+6109\r\n 7: 00007FF7572050ED v8::Platform::SystemClockTimeMillis+655117\r\n 8: 00007FF756A2044D BIO_ssl_shutdown+189\r\n 9: 00007FF75720CA64 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+20596\r\n10: 00007FF7572224C6 v8::Isolate::GetHeapProfiler+8150\r\n11: 00007FF7572225FE v8::Isolate::GetHeapProfiler+8462\r\n12: 00007FF757233547 v8::Isolate::GetHeapProfiler+77911\r\n13: 00007FF756EDB2C8 v8::internal::Version::GetString+447528\r\n14: 00007FF6F747027A\r\n ELIFECYCLE Command failed with exit code 134.\r\n```\r\n\r\nPeriodically losing LaTeX preview makes it kinda hard to write math-heavy posts. Can you guys help?\n\n### Reproduction\n\nExample pages with OOM issue:\r\n* https://github.com/Locietta/blog-lost-pieces/blob/main/posts/possibility-calculation.md\r\n* https://github.com/Locietta/blog-lost-pieces/blob/main/posts/%E9%A9%AC%E5%B0%94%E7%A7%91%E5%A4%AB%E9%93%BE%E4%B8%8A%E5%90%B8%E6%94%B6%E9%97%AE%E9%A2%98%E7%9A%84%E6%9C%9F%E6%9C%9B%E5%92%8C%E6%A6%82%E7%8E%87.md\r\n* ...\n\n### Expected behavior\n\nNot OOM under `vitepress dev` when editing LaTeX-heavy pages.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22635\r\n CPU: (16) x64 AMD Ryzen 7 7435HS\r\n Memory: 10.12 GB / 23.74 GB\r\n Binaries:\r\n Node: 23.3.0 - D:\\Scoop\\apps\\nodejs\\current\\node.EXE\r\n npm: 10.9.0 - D:\\Scoop\\apps\\nodejs\\current\\npm.CMD\r\n pnpm: 9.14.4 - D:\\Scoop\\shims\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (130.0.2849.68)\r\n Internet Explorer: 11.0.22621.3566\r\n npmPackages:\r\n vitepress: 1.5.0 => 1.5.0\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.",[2910,2911,2912],{"name":2866,"color":2867},{"name":2869,"color":2870},{"name":2913,"color":2914},"needs more discussion","C2E0C6",4415,"Crash with JS heap OOM when editing LaTeX-heavy pages under `vitepress dev`","2025-01-20T11:04:35Z","https://github.com/vuejs/vitepress/issues/4415",0.7758263,{"description":2921,"labels":2922,"number":2926,"owner":2872,"repository":2873,"state":2874,"title":2927,"updated_at":2928,"url":2929,"score":2930},"Why the css and js files import fail after I [npm run build](docs:build)? In other words, the styles are lost and the web pages are messed up.\r\n\r\nWhether or not to set base is the same.\r\n\r\nThe following is the dist without the base (taking example.html as an example):\r\n\u003Cimg width=\"291\" alt=\"image\" src=\"https://github.com/user-attachments/assets/927cdd84-5ff2-4d3f-8f80-9b6f577f4f30\">\r\n\u003Cimg width=\"944\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e8fbac74-3fdb-4754-81e1-6ad024428abc\">\r\n\u003Cimg width=\"1439\" alt=\"image\" src=\"https://github.com/user-attachments/assets/891b39fc-e11e-45b3-b52d-ff3f835ef734\">\r\n\r\nAs long as I change \"href=\"/assets/style.eGqldYn-.css\" to href=\"assets/style.eGqldYn-.css\", the style will return to normal.\r\n\u003Cimg width=\"1436\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ac9e36be-20da-4fc8-bda1-e8c826314c32\">\r\n\r\n\r\nIs there something wrong with the config.ts?\r\n\r\nthanks very much~\r\n\r\n-------------------------------------------------------\r\n为什么我build之后,css和js文件的引入失败呢?也就是说,样式丢失,网页错乱\r\n\r\n无论加不加base属性都是如此。\r\n\r\n以下是没有加base属性的dist文件(以example.html为例):\r\n\u003Cimg width=\"291\" alt=\"image\" src=\"https://github.com/user-attachments/assets/927cdd84-5ff2-4d3f-8f80-9b6f577f4f30\">\r\n\u003Cimg width=\"944\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e8fbac74-3fdb-4754-81e1-6ad024428abc\">\r\n\u003Cimg width=\"1439\" alt=\"image\" src=\"https://github.com/user-attachments/assets/891b39fc-e11e-45b3-b52d-ff3f835ef734\">\r\n\r\n\r\n只要我将 href=\"/assets/style.eGqldYn-.css\" 改成 href=\"assets/style.eGqldYn-.css\",样式就恢复正常了。\r\n\u003Cimg width=\"1436\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ac9e36be-20da-4fc8-bda1-e8c826314c32\">\r\n\r\n是哪里的配置写错了吗?\r\n\r\n非常感谢",[2923],{"name":2924,"color":2925},"need more info","bdbefc",4165,"Why the css and js files import fail after I build? In other words, the styles are lost and the web pages are messed up.","2025-03-02T18:08:41Z","https://github.com/vuejs/vitepress/issues/4165",0.7763253,{"description":2932,"labels":2933,"number":2937,"owner":2872,"repository":2873,"state":2938,"title":2939,"updated_at":2940,"url":2941,"score":2942},"### 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.",[2934],{"name":2935,"color":2936},"contribution welcome","11E4B8",3116,"closed","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.7397013,{"description":2944,"labels":2945,"number":2949,"owner":2872,"repository":2873,"state":2938,"title":2950,"updated_at":2951,"url":2952,"score":2953},"### Describe the bug\n\nI installed Vitepress, built then ran it locally following the documentation of Vercel and everything seemed fine. But when I deployed it to my personal Vercel, my site keeps loading the 404.html. When I visit the Output of Vercel, I couldn't find any index.html and only 404.html. \r\n\r\nHere is currently [the blog of mine](https://vitepress-doc-kappa.vercel.app/) that I deployed to Vercel.\r\n\r\nThis is my current source on Vercel:\r\n\r\n\r\nThis is my current output on Vercel:\r\n\r\n\r\n\n\n### Reproduction\n\nNot sure if this is the correct way to reproduce, but I'll list down the commands that I ran, from install command to deploy:\r\n\r\n```bash\r\nnpm add -D vitepress\r\nnpx vitepress init ./\r\nnpm run docs:build\r\nnpm run docs:preview\r\nvercel --prod\r\n```\n\n### Expected behavior\n\nPage should load index.html when visiting `/`.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19043\r\n CPU: (4) x64 Intel(R) Pentium(R) CPU G4560 @ 3.50GHz\r\n Memory: 2.27 GB / 7.96 GB\r\n Binaries:\r\n Node: 20.0.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 9.6.4 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (120.0.2210.133)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.39 => 1.0.0-rc.39\n```\n\n\n### Additional context\n\nI use a fresh setup of Vitepress and deploy to a Vercel setting using Node v20.x (which as mentioned on Vercel that is still in Beta). However I did try Node v18.x on Vercel and the error is the same. \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.",[2946],{"name":2947,"color":2948},"bug: pending triage","e99695",3460,"Site auto loads 404.html after deployed to Vercel","2024-01-24T00:04:46Z","https://github.com/vuejs/vitepress/issues/3460",0.74961174,{"description":2955,"labels":2956,"number":2957,"owner":2872,"repository":2873,"state":2938,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\n\nvitepress dev is normal, but vitepress build reports an error, SyntaxError: Element is missing end tag. The key is that it is impossible to locate where the end tag is missing.\n\n### Reproduction\n\nvitepress build\n\n### Expected behavior\n\nPack normally or provide specific error information\n\n### System Info\n\n```Text\n\"vitepress\": \"^1.1.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.",[],3876,"SyntaxError: Element is missing end tag.","2024-05-31T04:42:05Z","https://github.com/vuejs/vitepress/issues/3876",0.74963695,{"description":2963,"labels":2964,"number":2965,"owner":2872,"repository":2873,"state":2938,"title":2966,"updated_at":2967,"url":2968,"score":2969},"### Is your feature request related to a problem? Please describe.\r\n\r\nI want to set the navigation bar to be frosted or translucent. What should I do?\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nI want to set the navigation bar to be frosted or translucent. What should I do?\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.",[],3342,"Modify the top navigation bar to be transparent or frosted translucent","2023-12-27T00:04:28Z","https://github.com/vuejs/vitepress/issues/3342",0.75076383,["Reactive",2971],{},["Set"],["ShallowReactive",2974],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fE5Z0KdHl4G-KFE2FJj1iT2zGFKnF9ELvshdHr86NZGw":-1},"/vuejs/vitepress/4003"]