\n\n\u003Cimg width=\"821\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d4b60aea-4b7c-422f-8c0e-339be12dbe42\" />\n\n\u003Cimg width=\"901\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/691bb9b3-a61d-4f15-8426-68416f7340da\" />\n\n\u003Cimg width=\"915\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/9c8470cc-7c45-476a-aaf1-3f990a1c57f0\" />\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 11 10.0.22631\n CPU: (28) x64 Intel(R) Core(TM) i7-14700KF\n Memory: 15.99 GB / 31.82 GB\n Binaries:\n Node: 20.17.0 - D:\\Program Files\\nodejs\\node.EXE\n npm: 10.8.2 - D:\\Program Files\\nodejs\\npm.CMD\n pnpm: 9.8.0 - D:\\Program Files\\nodejs\\pnpm.CMD\n Browsers:\n Edge: Chromium (127.0.2651.74)\n Internet Explorer: 11.0.22621.3527\n npmPackages:\n vitepress: ^1.6.3 => 1.6.3\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.",[2917],{"name":2866,"color":2867},4519,"\"vitepress\" work with \"unplugin-vue-components\" bug","2025-02-02T04:41:47Z","https://github.com/vuejs/vitepress/issues/4519",0.6823433,{"description":2924,"labels":2925,"number":2927,"owner":2869,"repository":2870,"state":2871,"title":2928,"updated_at":2929,"url":2930,"score":2931},"### Describe the bug\n\n```\r\n▶ yarn build:docs\r\nyarn run v1.22.10\r\n$ vitepress build docs\r\nvitepress v0.15.6\r\nvite v2.4.1\r\n✓ building client + server bundles...\r\n⠋ rendering pages...\r\n✖ rendering pages...\r\nbuild error:\r\n TypeError: Cannot read property 'imports' of undefined\r\n at resolvePageImports (x/node_modules/vitepress/dist/node/build/render.js:81:22)\r\n at Object.renderPage (x/node_modules/vitepress/dist/node/build/render.js:35:12)\r\n at async Object.build (x/node_modules/vitepress/dist/node/build/build.js:29:17)\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\r\n```\r\n\r\nhttps://github.com/vuejs/vitepress/blob/master/src/node/build/render.ts#L115\r\n\n\n### Reproduction\n\n``` bash\r\ncd docs\r\nln -s ../CHANGELOG.md changelog.md\r\nln -s ../packages components \r\n```\n\n### Expected behavior\n\n`build` success same as `dev`\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 11.4\r\n CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz\r\n Memory: 710.10 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 14.17.0 - /usr/local/bin/node\r\n Yarn: 1.22.10 - /usr/local/bin/yarn\r\n npm: 6.14.13 - /usr/local/bin/npm\r\n Watchman: 4.9.0 - /usr/local/bin/watchman\r\n Browsers:\r\n Chrome: 91.0.4472.164\r\n Edge: 81.0.416.77\r\n Firefox: 87.0\r\n Safari: 14.1.1\r\n Safari Technology Preview: 15.0\r\n npmPackages:\r\n vitepress: ^0.15.6 => 0.15.6\n```\n\n\n### Additional context\n\nThe following code works fine\r\n```\r\n return Array.from(new Set([\r\n ...indexChunk.imports,\r\n ...indexChunk.dynamicImports,\r\n ...(pageChunk?.imports|| []),\r\n ...(pageChunk?.dynamicImports || [])\r\n ].filter(Boolean)));\r\n```\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.",[2926],{"name":2866,"color":2867},335,"build failed with symbolic links","2023-01-21T16:20:24Z","https://github.com/vuejs/vitepress/issues/335",0.6864505,{"description":2933,"labels":2934,"number":2936,"owner":2869,"repository":2870,"state":2871,"title":2937,"updated_at":2938,"url":2939,"score":2940},"### Describe the bug\n\nUpon following the starter instructions in the [docs](https://vitepress.vuejs.org/guide/getting-started.html), running `yarn docs:dev` yields a blank webpage at `localhost:3000` with the error shown below in the console.\r\n\r\n\r\n\n\n### Reproduction\n\nFollowing the instructions outlined on the Getting Started page on [vitepress.vuejs.org](https://vitepress.vuejs.org/guide/getting-started.html).\n\n### Expected behavior\n\n\"Hello Vitepress\" should be rendered to the screen with no error messages in the console.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.13 Fedora 34 (Workstation Edition) 34 (Workstation Edition)\r\n CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz\r\n Memory: 2.30 GB / 15.28 GB\r\n Container: Yes\r\n Shell: 5.1.0 - /bin/bash\r\n Binaries:\r\n Node: 14.17.0 - /usr/bin/node\r\n Yarn: 1.22.5 - /usr/bin/yarn\r\n npm: 7.20.5 - /usr/local/bin/npm\r\n Browsers:\r\n Chrome: 92.0.4515.131\r\n Firefox: 90.0.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.",[2935],{"name":2866,"color":2867},355,"import not found: defineEmit","2023-01-21T16:22:12Z","https://github.com/vuejs/vitepress/issues/355",0.6877331,{"description":2942,"labels":2943,"number":2944,"owner":2869,"repository":2870,"state":2871,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Describe the bug\n\nFollowing instructions found here: https://vitepress.vuejs.org/guide/theme-introduction#customizing-css\r\n\r\nIf I copy and paste the example code, and create a `custom.css` file in the same folder and then likewise copy and paste the example css in it, it generates the error: ` Error [RollupError]: \"default\" is not exported by \"docs/.vitepress/theme/index.js\"` when I run `yarn run docs:build`\n\n### Reproduction\n\nInstall fresh install of vitepress. Follow doc guide for custom css. Attempt to build. Fails.\n\n### Expected behavior\n\nBuilds and css changes are viewable.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.6.2\r\n CPU: (12) x64 Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz\r\n Memory: 123.30 MB / 64.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node\r\n Yarn: 1.22.10 - /usr/local/bin/yarn\r\n npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm\r\n Browsers:\r\n Chrome: 108.0.5359.124\r\n Firefox: 104.0.1\r\n Safari: 16.2\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.36 => 1.0.0-alpha.36\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.",[],1802," Error [RollupError]: \"default\" is not exported by \"docs/.vitepress/theme/index.ts\"","2023-03-29T00:04:11Z","https://github.com/vuejs/vitepress/issues/1802",0.6884149,{"description":2950,"labels":2951,"number":2958,"owner":2869,"repository":2870,"state":2871,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### Describe the bug\n\nwhen run `pnpm build`, it wil show this error message:\r\n```\r\nSyntaxError: The requested module '@vueuse/shared' does not provide an export named 'resolveRef'\r\n at ModuleJob._instantiate (node:internal/modules/esm/module_job:127:21)\r\n at async ModuleJob.run (node:internal/modules/esm/module_job:193:5)\r\n at async Promise.all (index 0)\r\n at async ESMLoader.import (node:internal/modules/esm/loader:337:24)\r\n at async build (file:///Users/bou/working/code/vue-pro/sinogear-frontend-pro-vue/node_modules/.pnpm/vitepress@1.0.0-alpha.30_less@4.1.3/node_modules/vitepress/dist/node/serve-e6561b64.js:42006:24)\r\n ELIFECYCLE Command failed with exit code 1.\r\n \r\n```\r\n\r\n\n\n### Reproduction\n\n- I have import a Self-developed components in `docs/.vitepress/theme/index.js`:\r\n\r\n```\r\nimport SgVue from '../../../lib/index.js';\r\n```\r\n\r\n- config in `/docs/.vitepress/config.js`:\r\n```\r\nimport { defineConfigWithTheme } from 'vitepress';\r\nimport vueJsx from '@vitejs/plugin-vue-jsx';\r\nimport baseConfig from '@vue/theme/config';\r\nimport { demoBlockPlugin } from 'vitepress-theme-demoblock';\r\nimport { SearchPlugin } from 'vitepress-plugin-search';\r\n\r\nimport { i18n, nav, sidebar } from './config/index';\r\n\r\nexport default defineConfigWithTheme({\r\n extends: baseConfig,\r\n lang: 'zh-CN',\r\n title: 'Sg Vue',\r\n description: 'Vue2.7.0+版本开发文档',\r\n srcDir: 'src',\r\n // srcExclude: ['tutorial/**/description.md'],\r\n scrollOffset: 'header',\r\n ignoreDeadLinks: true,\r\n head: [['meta', { name: 'theme-color', content: '#3c8772' }]],\r\n themeConfig: {\r\n nav,\r\n sidebar,\r\n appearance: false, // 开启 light/dark 模式\r\n // Placeholder of the i18n config for @vuejs-translations.\r\n i18n,\r\n footer: {\r\n copyright: `©2006-${new Date().getFullYear()}`\r\n }\r\n },\r\n\r\n markdown: {\r\n config(md) {\r\n // demoBlockPlugin 基于 Vitepress 的主题插件,在编写文档的时候增加 Vue 示例\r\n md.use(demoBlockPlugin, {\r\n cssPreprocessor: 'less',\r\n //markdown 中的vue代码被编译为了 vue 函数组件,需要把 import 转换为 require\r\n scriptImports: [\r\n \"import * as AntDesignVue from 'ant-design-vue'\",\r\n \"import * as SinogearVue from '../../../lib/index.js'\",\r\n \"import * as AntDesignVueIcons from '@ant-design/icons-vue'\"\r\n ],\r\n scriptReplaces: [\r\n {\r\n searchValue: /const ({ defineComponent as _defineComponent }) = Vue/g,\r\n replaceValue: 'const { defineComponent: _defineComponent } = Vue'\r\n },\r\n {\r\n searchValue: /import ({.*}) from 'ant-design-vue'/g,\r\n replaceValue: (s, s1) => `const ${s1} = AntDesignVue`\r\n },\r\n {\r\n searchValue: /import ({.*}) from '..\\/..\\/..\\/lib\\/index.js'/g,\r\n replaceValue: (s, s1) => `const ${s1} = SinogearVue`\r\n },\r\n {\r\n searchValue: /import ({.*}) from '@ant-design\\/icons-vue'/g,\r\n replaceValue: (s, s1) => `const ${s1} = AntDesignVueIcons`\r\n }\r\n ]\r\n });\r\n }\r\n },\r\n\r\n vite: {\r\n server: {\r\n host: true,\r\n port: 3001,\r\n fs: {\r\n // for when developing with locally linked theme\r\n allow: ['../..']\r\n }\r\n },\r\n build: {\r\n minify: 'terser',\r\n chunkSizeWarningLimit: Infinity\r\n },\r\n json: {\r\n stringify: true\r\n },\r\n plugins: [\r\n vueJsx(),\r\n SearchPlugin({\r\n tokenize: 'full'\r\n })\r\n ],\r\n css: {\r\n preprocessorOptions: {\r\n less: {\r\n javascriptEnabled: true\r\n }\r\n }\r\n }\r\n },\r\n\r\n vue: {\r\n reactivityTransform: true\r\n }\r\n});\r\n\r\n```\r\n\r\n- It's OK on Dev\r\n\r\n- Run `pnpm build`\r\n\n\n### Expected behavior\n\nno error show \n\n### System Info\n\n```shell\n`\"vitepress\": \"^1.0.0-alpha.28\"`\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.",[2952,2955],{"name":2953,"color":2954},"need more info","bdbefc",{"name":2956,"color":2957},"stale","ededed",1679,"The requested module '@vueuse/shared' does not provide an export named 'resolveRef'","2023-08-13T00:04:21Z","https://github.com/vuejs/vitepress/issues/1679",0.68955153,["Reactive",2964],{},["Set"],["ShallowReactive",2967],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f-hYXv-jgS-IFXuxJikz6YrzA2_k5mBDI8U8SB1d61mo":-1},"/vuejs/vitepress/3249"]