\r\n\r\nbut in Layout.vue it uses Header and Header uses themeConfig that is a Symbol: \r\n```vue\r\n// Layout.vue\r\n\u003Ctemplate>\r\n \u003CHeader :nav=\"Navlist\">\u003C/Header>\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\nimport Header from \"../header/index.vue\";\r\n\u003C/script>\r\n// Header.vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport { inject, computed } from \"vue\";\r\nimport { themeConfig } from \"../../compositions/configProvider\"; // Notice this line\r\n\r\nconst theme = inject(themeConfig)!; // Notice this line\r\n```\r\nIn Header.vue, themeConfig exists in myTheme/src/compositions/configProvider.ts, \r\nbut in .vitepress/cache/deps/myTheme.js, it also exits a themeConfig.\r\ntwo themeConfig, two Symbol.\r\n***In the result***, provide/inject is fail.\r\n\r\n\r\nIn development this is bad, in production, the configProvider module is not extracted, the themeConfig variable is unique.\n\n### Reproduction\n\nas mentioned earlier\n\n### Expected behavior\n\nIn development, some es module that come from node_modules ain't extracted, the variable don't be duplicated.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22000\r\n Binaries:\r\n Node: 18.16.0\r\n pnpm: 8.6.0\r\n npmPackages:\r\n vitepress: 1.0.0-rc.31\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.",[2879,2882],{"name":2880,"color":2881},"need more info","bdbefc",{"name":2866,"color":2867},3292,"Theme is made into npm package, if use the theme, Symbol is duplicated in dev.","2024-03-07T11:19:22Z","https://github.com/vuejs/vitepress/issues/3292",0.7979982,{"description":2889,"labels":2890,"number":2892,"owner":2869,"repository":2870,"state":2871,"title":2893,"updated_at":2894,"url":2895,"score":2896},"### Describe the bug\n\nThe anchor point of markdown file is incorrect after using vue component\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-ntyrly?file=docs%2Fexample.md\n\n### Expected behavior\n\nAnchor point correct\n\n### System Info\n\n```Text\nmac\r\nFirefox\n```\n\n\n### Additional context\n\n\u003Cimg width=\"1409\" alt=\"图片\" src=\"https://github.com/vuejs/vitepress/assets/81661030/3c1e94e7-fd9e-4d2b-8809-c2c6396c97a4\">\r\n\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.",[2891],{"name":2866,"color":2867},3428,"The anchor point of markdown file is incorrect after using vue component","2025-03-02T18:09:55Z","https://github.com/vuejs/vitepress/issues/3428",0.8002034,{"description":2898,"labels":2899,"number":2903,"owner":2869,"repository":2870,"state":2904,"title":2905,"updated_at":2906,"url":2907,"score":2908},"### Describe the bug\n\ndata.posts does not get read properly\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/~/github.com/kfung21/test-blog\n\n### Expected behavior\n\nshow blog posts\n\n### System Info\n\n```Text\n[ERROR] \"vitepress\" resolved to an ESM file. ESM file cannot be loaded by `require`. See https://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details. [plugin externalize-deps]\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.",[2900],{"name":2901,"color":2902},"bug: pending triage","e99695",3655,"closed","createContentLoader data.posts.js resolved to an ESM file and cannot be loaded by require. 1.0.0-rc.45","2024-03-22T00:04:27Z","https://github.com/vuejs/vitepress/issues/3655",0.71467483,{"description":2910,"labels":2911,"number":2912,"owner":2869,"repository":2870,"state":2904,"title":2913,"updated_at":2914,"url":2915,"score":2916},"### Is your feature request related to a problem? Please describe.\n\nI don't know if there's an already existing solution, but I try to rename a file according to the parent's folder\n\n### Describe the solution you'd like\n\nHere is an example:\r\n`/foo/bar/bar.md -> /foo/bar/index.md`\n\n### Describe alternatives you've considered\n\nI tried to create rewrite rules, something like that:\r\n`\":dir/:dir.md\": \":dir/index.md\"`\r\n\r\nBut it's not working\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.dev).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],3453,"Rename file that match parent folder name","2024-01-23T00:04:55Z","https://github.com/vuejs/vitepress/issues/3453",0.73260266,{"description":2918,"labels":2919,"number":2921,"owner":2869,"repository":2870,"state":2904,"title":2922,"updated_at":2923,"url":2924,"score":2925},"### Describe the bug\n\n\r\n复现方式,在服务器部署后,访问具体的某一个子菜单后,鼠标选中浏览器地址,按下enter键。就会导致如图效果,首页会和选中页面重合\n\n### Reproduction\n\n在服务器部署后,访问具体的某一个子菜单后,鼠标选中浏览器地址,按下enter键\r\n例如 :\r\n我已经定位到这个具体的菜单 : http://127.0.0.1:80/demo/specify01\r\n\r\n当我在浏览器地址栏使用鼠标选中地址栏并且按下enter键的时候,就会出现上面的情况\n\n### Expected behavior\n\n我希望我在定位到具体的菜单后,在浏览器快速访问时,会帮我定位到具体的菜单,而不是和首页重合\n\n### System Info\n\n```sh\n1.0.0-beta.3\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":2901,"color":2902},2556,"页面与首页重合","2023-07-07T00:04:41Z","https://github.com/vuejs/vitepress/issues/2556",0.7369547,{"description":2927,"labels":2928,"number":2929,"owner":2869,"repository":2870,"state":2904,"title":2930,"updated_at":2931,"url":2932,"score":2933},"### Is your feature request related to a problem? Please describe.\n\nyes, sometimes code samples are too large to fit on the full screen or the size of screen the user is on\n\n### Describe the solution you'd like\n\nI'd like to allow for a button next to the copy button on code blocks that allows the user to wrap the code blocks\r\n\r\n\u003Cimg width=\"190\" alt=\"testing 2023-08-18 at 10 28 07\" src=\"https://github.com/vuejs/vitepress/assets/46639943/7e404a6c-3405-4b4c-a56a-0174c49c339f\">\n\n### Describe alternatives you've considered\n\n_No response_\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.dev).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],2815,"Allow wrapping of code blocks","2023-08-26T00:04:05Z","https://github.com/vuejs/vitepress/issues/2815",0.73760563,{"description":2935,"labels":2936,"number":2938,"owner":2869,"repository":2870,"state":2904,"title":2939,"updated_at":2940,"url":2941,"score":2942},"### Describe the bug\r\n\r\nAfter I deploy VitePress to Nginx, refreshing the page will display both the content of the home page and the content of the current route, Why does this happen\r\n\r\n\r\nnginx configuration:\r\n~~~\r\nlocation /docs {\r\n alias /Users/wulianpu/Workplace/vitepress/docs/.vitepress/dist;\r\n try_files $uri $uri/ /docs/index.html;\r\n}\r\n",[2937],{"name":2901,"color":2902},2342,"Nginx deployment, refresh the browser page content display problem","2023-05-14T00:04:11Z","https://github.com/vuejs/vitepress/issues/2342",0.73761326,{"description":2944,"labels":2945,"number":2948,"owner":2869,"repository":2870,"state":2904,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\nI'm using html in .md files, if the html content is similar like the following, vitepress(run dev or run build) report \"Element is missing end tag\"\r\n\r\n```html\r\n... \u003Cpre data-language=\"javascript\" id=\"PZrJj\" class=\"ne-codeblock language-javascript\">\u003Ccode>const foo = 'foo'\r\n\r\nfunction bar() {\r\n const b = 'b'\r\n return b\r\n}\r\n\r\n\u003C/code>\u003C/pre> ...\r\n```\r\n\r\nEverything works well after I removed all the line-breaks(`\\r\\n`) inside the `\u003Ccode>\u003C/code>` tag, like this:\r\n\r\n```html\r\n...\u003Cpre data-language=\"javascript\" id=\"PZrJj\" class=\"ne-codeblock language-javascript\">\u003Ccode>const foo = 'foo'\r\nfunction bar() {\r\n const b = 'b'\r\n return b\r\n}\r\n\u003C/code>\u003C/pre>...\r\n```\n\n### Reproduction\n\n👆🏻\n\n### Expected behavior\n\nExpect works when using \u003Cpre>\u003Ccode>...\u003C/code>\u003Cpre> in .md files with line-breaks\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.5\r\n CPU: (8) arm64 Apple M1\r\n Memory: 91.86 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\nBinaries:\r\n Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v14.21.3/bin/yarn\r\n npm: 6.14.18 - ~/.nvm/versions/node/v14.21.3/bin/npm\r\nBrowsers:\r\n Chrome: 126.0.6478.127\r\n Edge: 126.0.2592.87\r\n Safari: 17.5\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.",[2946,2947],{"name":2880,"color":2881},{"name":2866,"color":2867},4031,"[plugin:vite:vue] Element is missing end tag","2025-01-07T04:42:58Z","https://github.com/vuejs/vitepress/issues/4031",0.7452286,{"description":2954,"labels":2955,"number":2957,"owner":2869,"repository":2870,"state":2904,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\n\nRelated or identical to this locked issue:\r\n- https://github.com/vuejs/vitepress/issues/1004\r\n\r\nWhen running `npm run docs:build`, the build fails with the following error message:\r\n\r\n```\r\n✓ building client + server bundles...\r\nbuild error:\r\nError: ENOTEMPTY: directory not empty, rmdir '\\\\?\\D:\\path\\to\\project\\docs\\.vitepress\\.temp'\r\n at Object.rmdirSync (node:fs:1226:10)\r\n at _rmdirSync (node:internal/fs/rimraf:260:21)\r\n at rimrafSync (node:internal/fs/rimraf:193:7)\r\n at Object.rmSync (node:fs:1275:10)\r\n at build (file:///D:/path/to/project/node_modules/vitepress/dist/node/serve-d5608de4.js:41814:12)\r\n```\r\n\r\nThe directory is empty afterwards, and does not exist before running `npm run docs:build`.\r\n\n\n### Reproduction\n\nHappens consistently (100%) for some projects and never (0%) for other projects. Have not found a pattern or trivial reproduction yet.\n\n### Expected behavior\n\nCan either build or get an actionable error message\n\n### System Info\n\n```sh\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz\r\n Memory: 40.60 GB / 63.85 GB\r\n Binaries:\r\n Node: 18.13.0 - D:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.13.2 - D:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 114.0.5735.110\r\n Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.57)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.1 => 1.0.0-beta.1\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.",[2956],{"name":2901,"color":2902},2482,"Build fails with `Error: ENOTEMPTY: directory not empty, rmdir docs\\.vitepress\\.temp`","2023-06-15T00:04:11Z","https://github.com/vuejs/vitepress/issues/2482",0.7614119,["Reactive",2963],{},["Set"],["ShallowReactive",2966],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fAfJPMVTLImCVrLT6xdYcTPSLmcYycsg5HKgv_e2d9f0":-1},"/vuejs/vitepress/2648"]