\r\n```\n\n### Expected behavior\n\nsuccessfully \n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22000\r\n CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz\r\n Memory: 6.54 GB / 15.88 GB\r\n Binaries:\r\n Node: 16.13.0 - C:\\nodejs\\node.EXE\r\n npm: 8.1.4 - C:\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22000.120.0), Chromium (98.0.1108.50)\r\n Internet Explorer: 11.0.22000.120\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.",[2906],{"name":2878,"color":2879},539,"build error:Blob is not defined","2023-01-21T16:20:11Z","https://github.com/vuejs/vitepress/issues/539",0.6935453,{"description":2913,"labels":2914,"number":2915,"owner":2867,"repository":2868,"state":2869,"title":2916,"updated_at":2917,"url":2918,"score":2919},"Minimal Reproducible Example: https://stackblitz.com/edit/vite-qjxpzz?file=docs%2FHelloWorld.vue (run `vitepress build docs`)\r\n\r\n---\r\n\r\n### Describe the bug\r\n\r\nI just had a live Vitepress site hosted on Netlify, using Vitepress 0.20.4 (EDIT: it's now at 1.0.0 alpha 4), fail a build with only content having changed. The site is publicly available on Github for reproduction: https://github.com/Ragura/dinkcreference.\r\n\r\nUsing `pnpm docs:build` command I get:\r\n\r\n```\r\n✓ building client + server bundles...\r\n✖ rendering pages...\r\nbuild error:\r\n ReferenceError: _unref is not defined\r\n at /Users/me/development/dinkcreference/node_modules/.pnpm/vitepress@0.20.4/node_modules/vitepress/dist/client/app/temp/app.js:1646:23\r\n at renderComponentSubTree (/Users/me/development/dinkcreference/node_modules/.pnpm/@vue+server-renderer@3.2.37_vue@3.2.37/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:250:13)\r\n at renderComponentVNode (/Users/me/development/dinkcreference/node_modules/.pnpm/@vue+server-renderer@3.2.37_vue@3.2.37/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:185:16)\r\n at Object.ssrRenderComponent (/Users/me/development/dinkcreference/node_modules/.pnpm/@vue+server-renderer@3.2.37_vue@3.2.37/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:605:12)\r\n at _sfc_ssrRender (/Users/me/development/dinkcreference/node_modules/.pnpm/vitepress@0.20.4/node_modules/vitepress/dist/client/app/temp/functions_set-font-color.md.js:25:24)\r\n at renderComponentSubTree (/Users/me/development/dinkcreference/node_modules/.pnpm/@vue+server-renderer@3.2.37_vue@3.2.37/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:250:13)\r\n at renderComponentVNode (/Users/me/development/dinkcreference/node_modules/.pnpm/@vue+server-renderer@3.2.37_vue@3.2.37/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:185:16)\r\n at renderVNode (/Users/me/development/dinkcreference/node_modules/.pnpm/@vue+server-renderer@3.2.37_vue@3.2.37/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:292:22)\r\n at renderVNodeChildren (/Users/me/development/dinkcreference/node_modules/.pnpm/@vue+server-renderer@3.2.37_vue@3.2.37/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:307:9)\r\n at renderElementVNode (/Users/me/development/dinkcreference/node_modules/.pnpm/@vue+server-renderer@3.2.37_vue@3.2.37/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:358:17)\r\n```\r\nIt is not using any outside packages, just pure Vitepress with Docsearch enabled.\r\nIf I run dev/serve commands, it works just fine locally. Only when building does it fail. Any idea what could be causing this?\r\n\r\n### Reproduction\r\n\r\nClone https://github.com/Ragura/dinkcreference.\r\nRun `pnpm docs:build`\r\n\r\n### Expected behavior\r\n\r\nIt should build, but fails.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 12.3\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 86.88 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 17.0.1 - ~/.nvm/versions/node/v17.0.1/bin/node\r\n npm: 8.13.1 - ~/.nvm/versions/node/v17.0.1/bin/npm\r\n Browsers:\r\n Chrome: 103.0.5060.53\r\n Safari: 15.4\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.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],876,"v-bind not working with computed properties","2023-01-21T14:32:41Z","https://github.com/vuejs/vitepress/issues/876",0.69473517,{"description":2921,"labels":2922,"number":2926,"owner":2867,"repository":2868,"state":2869,"title":2927,"updated_at":2928,"url":2929,"score":2930},"### Describe the bug\n\n很多时候在 `vitepress` 中难免使用到 `document`,但是 `vitepress` 使用服务端渲染方式,如何避免其打包的错误呢?\r\n\r\n有什么第三方插件推荐或者配置项吗?\r\n\r\n\u003Chr />\r\n\r\nIt is inevitable to use `document` in `vitepress` many times, but how to avoid the packaging error when` vitepress` uses the server-side rendering method?\r\n\r\nAre there any third-party plug-in recommendations or configuration items?\n\n### Reproduction\n\n```vue\r\n\u003Cscript setup>\r\n console.log(document)\r\n\u003C/script>\r\n```\r\n\r\n\r\n\n\n### Expected behavior\n\nBuild ok\n\n### System Info\n\n```shell\n\"vitepress\": \"^1.0.0-alpha.4\",\r\n\"vue\": \"^3.2.33\"\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.",[2923],{"name":2924,"color":2925},"question","5D5FAE",1120,"document is not defined","2023-01-21T14:28:51Z","https://github.com/vuejs/vitepress/issues/1120",0.69533396,{"description":2932,"labels":2933,"number":2935,"owner":2867,"repository":2868,"state":2869,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Describe the bug\r\n\r\n```\r\nUncaught ReferenceError: can't access lexical declaration 'K' before initialization\r\n vi https://preview-extend-template.gander-pl.pages.dev/assets/chunks/framework.v9o0AzEe.js:13\r\n \u003Canonymous> https://preview-extend-template.gander-pl.pages.dev/assets/chunks/theme.DDSRElNe.js:1\r\nframework.v9o0AzEe.js:13:10217\r\n```\r\n\r\n### Reproduction\r\n\r\n+ https://github.com/gander/gander.pl/tree/preview/extend-template\r\n+ https://github.com/gander/gander.pl/tree/preview/extend-template-inherit\r\n\r\n`.vitepress/theme/index.js`\r\n```js\r\nimport { h } from 'vue'\r\nimport DefaultTheme from 'vitepress/theme'\r\nimport Footer from \"./Footer.vue\";\r\n\r\nexport default {\r\n extends: DefaultTheme,\r\n Layout() {\r\n return h(DefaultTheme.Layout, null, {\r\n 'layout-bottom': () => h(Footer)\r\n })\r\n }\r\n}\r\n```\r\n\r\n`.vitepress/theme/Footer.vue`\r\n```vue\r\n\u003Cscript setup>\r\nconst telemetryImg = import.meta.env.VITE_TELEMETRY_IMG;\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003Cdiv class=\"telemetry\" v-if=\"telemetryImg\">\r\n \u003Cimg :src=\"telemetryImg\" alt=\"\">\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n\u003Cstyle scoped>\r\n.telemetry {\r\n text-align: center;\r\n}\r\n.telemetry img {\r\n display: inline-block;\r\n max-width: 66px;\r\n}\r\n\u003C/style>\r\n```\r\n\r\n### Expected behavior\r\n\r\nDisplay image in footer\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Linux 6.5 Linux Mint 21.3 (Virginia)\r\n Browsers:\r\n Chrome: 123.0.6312.86\r\n Cloudflare:\r\n Node: 20.5.1\r\n bun: 1.0.35\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nhttps://preview-extend-template.gander-pl.pages.dev/\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.",[2934],{"name":2878,"color":2879},3717,"Uncaught ReferenceError: can't access lexical declaration 'K' before initialization","2024-04-28T12:25:20Z","https://github.com/vuejs/vitepress/issues/3717",0.6954982,{"description":2941,"labels":2942,"number":2943,"owner":2867,"repository":2868,"state":2869,"title":2944,"updated_at":2945,"url":2946,"score":2947},"### Is your feature request related to a problem? Please describe.\r\n\r\nI use a lib named `@antv/l7`, the lib is used `webworker`, so when I run build,there is a error `self is not defined`. see the error in the [actions](https://github.com/edgexie/edgexie.github.io/actions/runs/3193642160/jobs/5212410104)\r\n\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nbuild pass and describe how to use webworker in vitepress in the offical doc.\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.vuejs.org).\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.",[],1438,"build failed with webworker?","2023-03-29T00:04:09Z","https://github.com/vuejs/vitepress/issues/1438",0.7003215,{"description":2949,"labels":2950,"number":2952,"owner":2867,"repository":2868,"state":2869,"title":2953,"updated_at":2954,"url":2955,"score":2947},"### Describe the bug\n\nI imported a lib which called document APIs. The minimized reproduction:\r\n\r\n```\r\n\u003Cscript>\r\nconst div = document.createElement('div');\r\nconsole.log(div)\r\n\u003C/script>\r\n\r\n# Hello World\r\n```\r\n\r\nIt works in vitepress dev but fails in vitepress build\n\n### Reproduction\n\nhttps://github.com/Jinjiang/reproductions/tree/vitepress-document-20240219\n\n### Expected behavior\n\nWorks as vitepress dev does\n\n### System Info\n\n```Text\n$ npx envinfo --system --npmPackages vitepress --binaries --browsers\r\n\r\n System:\r\n OS: macOS 14.4\r\n CPU: (8) arm64 Apple M1\r\n Memory: 75.17 MB / 8.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.1.0 - ~/.asdf/installs/nodejs/20.1.0/bin/node\r\n Yarn: 1.22.19 - ~/.asdf/shims/yarn\r\n npm: 9.6.4 - ~/.asdf/plugins/nodejs/shims/npm\r\n Browsers:\r\n Safari: 17.4\r\n npmPackages:\r\n vitepress: 1.0.0-rc.43 => 1.0.0-rc.43\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.",[2951],{"name":2878,"color":2879},3583,"document is not defined when vitepress build","2024-02-27T00:05:55Z","https://github.com/vuejs/vitepress/issues/3583",["Reactive",2957],{},["Set"],["ShallowReactive",2960],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$feNdGWeY688YG-MPlEM6NZ5FzXhgPzCAD5Bd94oQ25W8":-1},"/vuejs/vitepress/3610"]