`, but how should I find the exact cause from the error log? It does not provide any useful details (see below screenshot)\r\n\r\n---\r\n\r\nAnother question, as I guess my error is because of this:\r\nShould I wrap `watch()` inside `onMounted()`? or in another word, can I do it? I didn't find any corresponding example in Vue documentation... \r\nSorry if this is a dumb question, as I'm a react guy :(\r\n```vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport { useLocalStorage } from '@vueuse/core';\r\nimport { watch } from 'vue';\r\n\r\nconst nfcapiEnvRef = useLocalStorage('vp-nfcapi-env', 'staging', {\r\n deep: false,\r\n listenToStorageChanges: true,\r\n writeDefaults: true\r\n});\r\n\r\nwatch(nfcapiEnvRef, (value, oldValue) => {\r\n const htmlDataSet = document.documentElement.dataset;\r\n oldValue && (htmlDataSet.nfcapiEnv = oldValue.toLowerCase());\r\n htmlDataSet.nfcapiEnv = value.toLowerCase();\r\n}, { immediate: true });\r\n\u003C/script>\r\n```\r\n\r\n---\r\n\r\nScreenshot of the error:\r\n\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nThis is not a bug, but a question\r\n\r\n### Expected behavior\r\n\r\nN/A\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: 30.87 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.0 - C:\\NodeJS\\npm.CMD\r\n pnpm: 8.6.7 - C:\\NodeJS\\pnpm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.82)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.5 => 1.0.0-beta.5\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nN/A\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.",[2942],{"name":2943,"color":2944},"question","5D5FAE",2627,"How should I trace build error?","2023-07-24T00:04:51Z","https://github.com/vuejs/vitepress/issues/2627",0.7782983,{"description":2951,"labels":2952,"number":2956,"owner":2877,"repository":2878,"state":2915,"title":2957,"updated_at":2958,"url":2959,"score":2960},"### Describe the bug\n\nIf you use the VPTeamMembers component provided by vitepress you are forced to use an avatar with it.\r\nOtherwise the browser displays a missing image.\r\nIf you dont have an image of a person, you cannot use this component or have to design an own \"missing\" avatar icon.\r\n\n\n### Reproduction\n\nUse the VPTeamMembers component in any page and have an empty avatar attribute.\r\n\r\n```yml\r\n {\r\n avatar: '',\r\n name: 'Evan You',\r\n title: 'Creator',\r\n links: [\r\n { icon: 'github', link: 'https://github.com/yyx990803' },\r\n { icon: 'twitter', link: 'https://twitter.com/youyuxi' }\r\n ]\r\n }\r\n```\n\n### Expected behavior\n\nComponent should not rely on that avatar image.\r\n\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (32) x64 AMD Ryzen 9 3950X 16-Core Processor\r\n Memory: 106.32 GB / 127.91 GB\r\n Binaries:\r\n Node: 16.14.2 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.7.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (103.0.1264.71)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.4\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.",[2953],{"name":2954,"color":2955},"theme","0754FB",1073,"VPTeamMembers requires avatar to get displayed correctly","2023-03-29T00:04:08Z","https://github.com/vuejs/vitepress/issues/1073",0.78205687,{"description":2962,"labels":2963,"number":2967,"owner":2877,"repository":2878,"state":2915,"title":2968,"updated_at":2969,"url":2970,"score":2971},"### Describe the bug\r\n\r\nInstalling a fresh vitepress quickstart and using yarn with PnP installs. `yarn run docs:build` fails with:\r\n\r\n```\r\nbuild error:\r\n[vite]: Rollup failed to resolve import \"vue/server-renderer\" from \"/home/thomas/projects/testpnp/README.md\".\r\nThis is most likely unintended because it can break your application at runtime.\r\nIf you do want to externalize this module explicitly add it to\r\n`build.rollupOptions.external`\r\nError: [vite]: Rollup failed to resolve import \"vue/server-renderer\" from \"/home/thomas/projects/testpnp/README.md\".\r\nThis is most likely unintended because it can break your application at runtime.\r\nIf you do want to externalize this module explicitly add it to\r\n`build.rollupOptions.external`\r\n at viteWarn (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67612:27)\r\n at onRollupWarning (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67640:9)\r\n at onwarn (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67356:13)\r\n at file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:18514:13\r\n at Object.logger [as onLog] (file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:20162:9)\r\n at ModuleLoader.handleInvalidResolvedId (file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:19104:26)\r\n at file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:19062:26\r\n```\r\n\r\n### Reproduction\r\n\r\nUse this repo: https://github.com/l3d00m/vitepress-yarn-repro and run `corepack enable && yarn install && yarn run docs:build`\r\n\r\nAlternatively: \r\n\r\n1. Create New folder\r\n1. `yarn set version stable`\r\n2. `yarn add -D vitepress` \r\n3. `yarn vitepress init` (use default settings, just press enter)\r\n4. `yarn run docs:build` fails\r\n\r\n### Expected behavior\r\n\r\nShould not fail, should work out of the box\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Linux 6.9 Manjaro Linux\r\n CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor\r\n Memory: 6.45 GB / 15.53 GB\r\n Container: Yes\r\n Shell: 5.9 - /usr/bin/zsh\r\n Binaries:\r\n Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node\r\n Yarn: 4.2.2 - ~/.nvm/versions/node/v20.13.1/bin/yarn\r\n npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm\r\n Browsers:\r\n Chromium: 124.0.6367.155\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nThis is similar to #3035, but here it always fails, also with a fresh repo.\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.",[2964],{"name":2965,"color":2966},"docs","0075ca",3919,"Fails to build with yarn v4 PnP, rollup error","2024-06-03T04:41:58Z","https://github.com/vuejs/vitepress/issues/3919",0.7831853,{"description":2973,"labels":2974,"number":2975,"owner":2877,"repository":2878,"state":2915,"title":2976,"updated_at":2977,"url":2978,"score":2979},"### Is your feature request related to a problem? Please describe.\r\n\r\nI have modified the source code myself, but it needs to be customized again every time I upgrade. \r\nHope to add support for meta keywords.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\nTried to modify 7 files of the source code \r\n as shown below\r\n\u003Cimg width=\"351\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/25144943/28299ecd-66d2-4c8e-aea4-73932e16caed\">\r\n\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[vitepress1.0.2(改造版-支持md 内使用 keywords).zip](https://github.com/vuejs/vitepress/files/14831944/vitepress1.0.2.-.md.keywords.zip)\r\n\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.",[],3733,"Can support for meta keywords be added?","2024-04-28T12:25:04Z","https://github.com/vuejs/vitepress/issues/3733",0.78737265,["Reactive",2981],{},["Set"],["ShallowReactive",2984],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fpgX5CYNK1_QT9tqNUiESR7b30FB0w5Dtbz_CMvfwV40":-1},"/vuejs/vitepress/1047"]