` , no errors.\n\n### Expected behavior\n\nno errors, compile success\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz\r\n Memory: 16.46 GB / 31.85 GB\r\n Binaries:\r\n Node: 14.18.2 - E:\\apps\\node-v14\\node.EXE\r\n Yarn: 1.22.10 - E:\\apps\\node-v14\\node_global\\yarn.CMD\r\n npm: 7.20.0 - E:\\apps\\node-v14\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.50)\r\n Internet Explorer: 11.0.19041.1202\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.",[3078],{"name":3038,"color":3039},534,"in markdown file, use image file, image file exists and path correct, but image load failed","2023-01-21T14:34:14Z","https://github.com/vuejs/vitepress/issues/534",0.7173722,{"description":3085,"labels":3086,"number":3088,"owner":3027,"repository":3028,"state":3051,"title":3089,"updated_at":3090,"url":3091,"score":3092},"### Describe the bug\r\n\r\nI have a npm package called @declarative-gridstacks/react, it exports a bunch of react components (compiled with babel-loader obviously), I import these modules use them in vitepress it words good in dev mode... But when I actually try to build the vitepress project, it doesn't build.\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\n```jsx\r\nimport {\r\n GridstackContainer,\r\n} from \"@declarative-gridstack/react\"; // This is in node_modules.\r\n\r\nconst Component = () => {\r\nreturn \u003CGridstackContainer />\r\n}\r\n\r\nexport default Component;\r\n```\r\n\r\n// Import this code in \r\n```vue\r\n\u003Cdiv ref=\"el\" />\r\n\r\n\u003Cscript setup>\r\nimport { createElement } from 'react'\r\nimport { createRoot } from 'react-dom/client'\r\nimport { ref, onMounted } from 'vue'\r\nimport Simple from '../components/simple/Simple.jsx'\r\n\r\nconst el = ref()\r\nonMounted(() => {\r\n const root = createRoot(el.value)\r\n root.render(createElement(Simple, {}, null))\r\n})\r\n\u003C/script>\r\n```\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\nThe project should build... It works fine in dev mode...\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: macOS 12.5\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 1.16 GB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.1/bin/yarn\r\n npm: 8.19.4 - ~/.nvm/versions/node/v16.20.1/bin/npm\r\n Browsers:\r\n Chrome: 115.0.5790.114\r\n Safari: 15.6\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] 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.",[3087],{"name":3068,"color":3069},2709,"Unable to build the docs project when importing a module from node_modules","2023-08-07T00:04:27Z","https://github.com/vuejs/vitepress/issues/2709",0.7207532,{"description":3094,"labels":3095,"number":3096,"owner":3027,"repository":3028,"state":3051,"title":3097,"updated_at":3098,"url":3099,"score":3100},"### 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.7244279,{"description":3102,"labels":3103,"number":3104,"owner":3027,"repository":3028,"state":3051,"title":3105,"updated_at":3106,"url":3107,"score":3108},"### Is your feature request related to a problem? Please describe.\n\n> This is same as https://github.com/vuejs/vuepress/issues/2704\r\n\r\nThat issue was for prism but VitePress uses shiki. Is it possible to achieve language highlight with diff language?\n\n### Describe the solution you'd like\n\nna\n\n### Describe alternatives you've considered\n\nna\n\n### Additional context\n\nI use language highlighting for now instead of showing diff because without language highlight diff looks really bad. It takes some time for users to under what changes between two snippets but it's better highlighted.\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] 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.",[],830,"[Feature Request] Diff and Language Highlights","2023-01-21T14:23:00Z","https://github.com/vuejs/vitepress/issues/830",0.7315792,{"description":3110,"labels":3111,"number":3113,"owner":3027,"repository":3028,"state":3051,"title":3114,"updated_at":3115,"url":3116,"score":3117},"### Describe the bug\n\nRunning `npm run docs:build` results in an error when using latest (`-rc.2`) packaged version:\r\n\r\n```\r\n$ npm run docs:build\r\n\r\n> docs:build\r\n> vitepress build docs\r\n\r\n\r\n vitepress v1.0.0-rc.3\r\n\r\n✘ [ERROR] \"vitepress\" resolved to an ESM file. ESM file cannot be loaded by `require`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details. [plugin externalize-deps]\r\n\r\n node_modules/esbuild/lib/main.js:1373:27:\r\n 1373 │ let result = await callback({\r\n ╵ ^\r\n\r\n at file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66190:35\r\n at requestCallbacks.on-resolve (/tmp/vpress/node_modules/esbuild/lib/main.js:1373:28)\r\n at handleRequest (/tmp/vpress/node_modules/esbuild/lib/main.js:729:19)\r\n at handleIncomingPacket (/tmp/vpress/node_modules/esbuild/lib/main.js:755:7)\r\n at Socket.readFromStdout (/tmp/vpress/node_modules/esbuild/lib/main.js:679:7)\r\n at Socket.emit (node:events:513:28)\r\n at addChunk (node:internal/streams/readable:315:12)\r\n at readableAddChunk (node:internal/streams/readable:289:9)\r\n at Socket.Readable.push (node:internal/streams/readable:228:10)\r\n at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)\r\n\r\n This error came from the \"onResolve\" callback registered here:\r\n\r\n node_modules/esbuild/lib/main.js:1292:20:\r\n 1292 │ let promise = setup({\r\n ╵ ^\r\n\r\n at setup (file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66158:27)\r\n at handlePlugins (/tmp/vpress/node_modules/esbuild/lib/main.js:1292:21)\r\n at buildOrContextImpl (/tmp/vpress/node_modules/esbuild/lib/main.js:978:5)\r\n at Object.buildOrContext (/tmp/vpress/node_modules/esbuild/lib/main.js:786:5)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:2177:15\r\n at new Promise (\u003Canonymous>)\r\n at Object.build (/tmp/vpress/node_modules/esbuild/lib/main.js:2176:25)\r\n at build (/tmp/vpress/node_modules/esbuild/lib/main.js:2025:51)\r\n at bundleConfigFile (file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66109:26)\r\n\r\n The plugin \"externalize-deps\" was triggered by this import\r\n\r\n docs/.vitepress/config.ts:1:278:\r\n 1 │ ...import_meta_url = \"file:///tmp/vpress/docs/.vitepress/config.ts\";import { defineConfig } from 'vitepress'\r\n ╵ ~~~~~~~~~~~\r\n\r\nfailed to load config from /tmp/vpress/docs/.vitepress/config.ts\r\nbuild error:\r\nError: Build failed with 1 error:\r\nnode_modules/esbuild/lib/main.js:1373:27: ERROR: [plugin: externalize-deps] \"vitepress\" resolved to an ESM file. ESM file cannot be loaded by `require`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.\r\n at failureErrorWithLog (/tmp/vpress/node_modules/esbuild/lib/main.js:1649:15)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:1058:25\r\n at runOnEndCallbacks (/tmp/vpress/node_modules/esbuild/lib/main.js:1484:45)\r\n at buildResponseToResult (/tmp/vpress/node_modules/esbuild/lib/main.js:1056:7)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:1085:16\r\n at responseCallbacks.\u003Ccomputed> (/tmp/vpress/node_modules/esbuild/lib/main.js:703:9)\r\n at handleIncomingPacket (/tmp/vpress/node_modules/esbuild/lib/main.js:762:9)\r\n at Socket.readFromStdout (/tmp/vpress/node_modules/esbuild/lib/main.js:679:7)\r\n at Socket.emit (node:events:513:28)\r\n at addChunk (node:internal/streams/readable:315:12)\r\n```\n\n### Reproduction\n\n```\r\nmkdir vpress\r\ncd vpress\r\nnpm install -D vitepress\r\nnpx vitepress init\r\n#│ ./docs\r\n#│ My Awesome Project\r\n#│ A VitePress Site\r\n#│ Default Theme\r\n#│ Yes\r\n#│ Yes\r\nnpm run docs:build\r\n```\n\n### Expected behavior\n\nBuild runs successfully.\n\n### System Info\n\n```sh\nSystem:\r\n OS: Linux 6.4 Fedora Linux 38.20230806.0 (Silverblue)\r\n CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz\r\n Memory: 8.91 GB / 15.25 GB\r\n Container: Yes\r\n Shell: 5.2.15 - /bin/bash\r\n Binaries:\r\n Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node\r\n npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.3 => 1.0.0-rc.3\r\n```\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.",[3112],{"name":3068,"color":3069},2754,"[ERROR] \"vitepress\" resolved to an ESM file.","2023-08-16T00:04:18Z","https://github.com/vuejs/vitepress/issues/2754",0.73299867,["Reactive",3119],{},["Set"],["ShallowReactive",3122],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fuFlDrj3dOatvH8J8BPA0g7ApFDfM-hbi8rOpw81jan8":-1},"/vuejs/vitepress/4086"]