\r\n\u003C/template>\r\n\r\n```\r\n\r\n- `index.md`:\r\n\r\n```md\r\n---\r\nlayout: home\r\n---\r\n\r\n\u003Cscript setup>\r\nimport { useData } from 'vitepress'\r\n\u003C/script>\r\n\r\n{{ useData() }}\r\n```\r\n\r\nSee \u003Chttps://stackblitz.com/edit/vite-x3jrgk>.\n\n### Expected behavior\n\nThere should be no such warning.\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.5\r\n CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz\r\n Memory: 224.85 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.5.1 - /usr/local/bin/node\r\n npm: 9.8.0 - /usr/local/bin/npm\r\n pnpm: 8.6.6 - /usr/local/bin/pnpm\r\n Browsers:\r\n Chrome: 116.0.5845.110\r\n Edge: 115.0.1901.188\r\n Safari: 16.6\r\n npmPackages:\r\n vitepress: 1.0.0-rc.4 => 1.0.0-rc.4\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.",[3078],{"name":3019,"color":3020},2856,"Imports from vitepress in markdown files lead to reexport warning","2023-09-03T00:04:43Z","https://github.com/vuejs/vitepress/issues/2856",0.6442413,{"description":3085,"labels":3086,"number":3088,"owner":3022,"repository":3023,"state":3024,"title":3089,"updated_at":3090,"url":3091,"score":3092},"### 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.",[3087],{"name":3019,"color":3020},335,"build failed with symbolic links","2023-01-21T16:20:24Z","https://github.com/vuejs/vitepress/issues/335",0.6495905,{"description":3094,"labels":3095,"number":3097,"owner":3022,"repository":3023,"state":3024,"title":3098,"updated_at":3099,"url":3100,"score":3101},"### Describe the bug\n\nupdate \"vitepress\": \"^1.0.0-alpha.6\"\r\nin theme index.js\r\nimport naive from 'naive-ui'\r\n enhanceApp({ app }) {\r\n app.use(naive)\r\n }\r\n\r\nnpm run docs:build\r\n\r\n✓ building client + server bundles...\r\n(node:31512) Warning: To load an ES module, set \"type\": \"module\" in the package.json or use the .mjs extension.\r\n(Use `node --trace-warnings ...` to show where the warning was created)\r\nbuild error:\r\n C:\\Users\\A0\\Documents\\vitePress\\node_modules\\naive-ui\\es\\index.js:1\r\nexport { default, install } from './preset';\r\n^^^^^^\r\n\r\nSyntaxError: Unexpected token 'export'\r\n at wrapSafe (node:internal/modules/cjs/loader:1032:15)\r\n at Module._compile (node:internal/modules/cjs/loader:1067:27)\r\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)\r\n at Module.load (node:internal/modules/cjs/loader:981:32)\r\n at Function.Module._load (node:internal/modules/cjs/loader:822:12)\r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/translators:168:29)\r\n at ModuleJob.run (node:internal/modules/esm/module_job:197:25)\r\n at async Promise.all (index 0)\r\n at async ESMLoader.import (node:internal/modules/esm/loader:337:24)\r\n\r\n\n\n### Reproduction\n\nnpm run docs:build\n\n### Expected behavior\n\ntheme Full Import naive-ui \r\nbuild success\n\n### System Info\n\n```shell\n\"vitepress\": \"^1.0.0-alpha.6\"\r\n node : 14.16.2\r\n browsers : chrome\r\n system windows\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.",[3096],{"name":3019,"color":3020},1399,"import naive from 'naive-ui' build error: export { default, install } from './preset'; ^^^^^^ SyntaxError: Unexpected token 'export'","2023-01-21T14:25:25Z","https://github.com/vuejs/vitepress/issues/1399",0.65211344,{"description":3103,"labels":3104,"number":3108,"owner":3022,"repository":3023,"state":3024,"title":3109,"updated_at":3110,"url":3111,"score":3112},"### Describe the bug\r\n\r\nI try to use SolidJS in vitepress,\r\nwhen in development mode, it works ok,\r\nbut when I build, during the render process,\r\nit throws error like:\r\nSyntaxError: The requested module 'solid-js/web' does not provide an export named 'effect'\r\n at async render (file:///home/projects/vite-hnzcih/docs/.vitepress/.temp/app.js:4605:5)\r\n at async renderPage (file:///home/projects/vite-hnzcih/node_modules/vitepress/dist/node/serve-afe9b056.js:41460:19)\r\n at async Promise.all (index 1)\r\n at async Module.build (file:///home/projects/vite-hnzcih/node_modules/vitepress/dist/node/serve-afe9b056.js:42209:7)\r\n\r\n\r\n\r\nimport { template, render } from 'solid-js/web';\r\n ^^^^^^^^\r\nSyntaxError: The requested module 'solid-js/web' does not provide an export named 'template'\r\n\r\n\r\n\r\nI don't know why.\r\nIn pure vite program, it builds success.\r\nIn the reproduction, it seems can't resolve solid-js/web\r\n\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/vite-hnzcih?file=docs/components/Home.tsx\r\n\r\nrun \r\n```\r\nnpm install && npm run docs:dev\r\n```\r\n it renders ok,\r\nbut run\r\n```\r\n npm install && npm run docs:build\r\n```\r\nit will throw error.\r\n\r\n### Expected behavior\r\n\r\nI hope it builds successfully.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 16.14.2 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 7.17.0 - /usr/local/bin/npm\r\n npmPackages:\r\n vitepress: latest => 1.0.0-alpha.23\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nAlter ‘solid-js’ from ‘devDependencies’ to ‘dependencies’ still wasn't working.\r\n\r\n\r\n``` \r\n \"dependencies\": {\r\n \"@babel/core\": \"^7.19.6\",\r\n \"babel-preset-solid\": \"^1.6.1\",\r\n \"solid-js\": \"^1.6.1\",\r\n \"vite-plugin-solid\": \"^2.4.0\",\r\n \"vitepress\": \"latest\"\r\n }\r\n```\r\n\r\n```\r\nimport { defineConfig } from 'vite';\r\nimport solidPlugin from 'vite-plugin-solid';\r\n\r\nexport default defineConfig({\r\n plugins: [solidPlugin()],\r\n server: {\r\n port: 3000,\r\n },\r\n build: {\r\n target: 'esnext',\r\n },\r\n});\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.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3105],{"name":3106,"color":3107},"invalid","ffffff",1586,"use solidjs in vitepress build error","2023-01-28T00:04:04Z","https://github.com/vuejs/vitepress/issues/1586",0.66111535,["Reactive",3114],{},["Set"],["ShallowReactive",3117],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f2emF2AvBhu8KxRAagSfcqKMiuLFOE7hTRTa9RVCDOBg":-1},"/vuejs/vitepress/1329"]