\r\n\u003C/template>\r\n\r\n\u003Cscript setup>\r\n// import { useRoute } from \"vitepress\";\r\n// const route = useRoute();\r\n\u003C/script>\r\n```\r\n\r\n3. Create `docs/.vitepress/theme/index.js` with the following contents:\r\n\r\n```js\r\nimport Layout from \"./Layout.vue\";\r\n\r\nexport default {\r\n Layout,\r\n};\r\n```\r\n\r\n4. Run `yarn docs:dev` and open http://localhost:3000. Note the heading doesn't have any styles applied to it:\r\n\r\n\r\n\r\n5. Uncomment the lines in the `\u003Cscript setup>` section in `docs/.vitepress/theme/Layout.vue`. Note the heading now has the default styles applied to it, even though we only imported `useRoute`:\r\n\r\n\r\n\r\n**Expected behavior**\r\nThe heading should remain unstyled since we aren't explicitly importing any styles.\r\n\r\n**System Info**\r\n- vitepress version: v0.9.2\r\n- vite version: v1.0.0-rc.13\r\n- Node version: v12.20.0\r\n- OS version: macOS Catalina 10.15.7\r\n\r\n**Additional context**\r\nI had a quick look at the Vitepress code and it looks like the problem might be to do with this line: https://github.com/vuejs/vitepress/blob/309aa7a8d0e7ab08c1c9db258c74709a66b295cb/src/client/app/exports.ts#L29\r\n\r\nAdding the following to `docs/.vitepress/config.js`:\r\n\r\n```javascript\r\nmodule.exports = {\r\n alias: {\r\n \"/@default-theme/index\": \"/@theme/empty.js\",\r\n },\r\n};\r\n```\r\n\r\n...and creating an empty file `docs/.vitepress/theme/empty.js` prevents the default styles being applied.\r\n",[],182,"Importing default composables also imports default theme's styles","2023-01-21T16:23:59Z","https://github.com/vuejs/vitepress/issues/182",0.6617432,{"description":2946,"labels":2947,"number":2951,"owner":2871,"repository":2872,"state":2873,"title":2952,"updated_at":2953,"url":2954,"score":2955},"### 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.",[2948],{"name":2949,"color":2950},"invalid","ffffff",1586,"use solidjs in vitepress build error","2023-01-28T00:04:04Z","https://github.com/vuejs/vitepress/issues/1586",0.6643328,{"description":2957,"labels":2958,"number":2960,"owner":2871,"repository":2872,"state":2873,"title":2961,"updated_at":2962,"url":2963,"score":2964},"### Describe the bug\n\nWhen building my VitePress site, sometimes will got this error:\r\n\r\n```log\r\n✓ building client + server bundles...\r\n✖ rendering pages...\r\nbuild error:\r\nCannot read properties of undefined (reading 'some')\r\nTypeError: Cannot read properties of undefined (reading 'some')\r\n at isChildActive (file:///mnt/disk/MAIN/read/.vitepress/.temp/app.js:2935:28)\r\n at file:///mnt/disk/MAIN/read/.vitepress/.temp/app.js:2937:43\r\n at ReactiveEffect.fn (/mnt/disk/MAIN/read/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:928:13)\r\n at ReactiveEffect.run (/mnt/disk/MAIN/read/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:162:19)\r\n at get value [as value] (/mnt/disk/MAIN/read/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:940:109)\r\n at file:///mnt/disk/MAIN/read/.vitepress/.temp/app.js:2942:127\r\n at renderComponentSubTree (/mnt/disk/MAIN/read/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:442:9)\r\n at renderComponentVNode (/mnt/disk/MAIN/read/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:386:12)\r\n at ssrRenderComponent (/mnt/disk/MAIN/read/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:84:10)\r\n at file:///mnt/disk/MAIN/read/.vitepress/.temp/app.js:2974:19\r\nerror: script \"build\" exited with code 1\r\n```\r\n\r\nDidnot know how to figure it out.\n\n### Reproduction\n\nhttps://github.com/tianheg/read/tree/0a2c670076d0bec5db10500807eb4c31bb5c80da\n\n### Expected behavior\n\nbuild succeed every time\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.10 Arch Linux\r\n CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz\r\n Memory: 13.31 GB / 23.36 GB\r\n Container: Yes\r\n Shell: 5.9 - /usr/bin/zsh\r\nBinaries:\r\n Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node\r\n npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm\r\n bun: 1.1.22 - /usr/bin/bun\r\nnpmPackages:\r\n vitepress: ^1.3.2 => 1.3.2\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.",[2959],{"name":2868,"color":2869},4130,"bug: Repeated builds doesn't always succeed every time","2024-09-04T04:43:02Z","https://github.com/vuejs/vitepress/issues/4130",0.6644004,["Reactive",2966],{},["Set"],["ShallowReactive",2969],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$flBqoUIMhL5H8LCJyG0nB69ZpwMopjVQS5LQi4DrOlu4":-1},"/vuejs/vitepress/209"]