vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.58k stars 4.76k forks source link

Build fails on github with `` Could not load /.vuepress/.temp/internal/layoutComponents`` after installing @vuepress/plugin-docsearch #3132

Open marwie opened 1 year ago

marwie commented 1 year ago

Bug report

Github action fails after updating to "vuepress": "2.0.0-beta.61" (or rather after installing @vuepress/plugin-docsearch, even when reverting to .51 the error happens, not sure what is causing it tho or if plugin-docsearch does not support 51)

Steps to reproduce

See action result: https://github.com/needle-tools/needle-engine-support/actions/runs/4316470574/jobs/7532296315 See github: https://github.com/needle-tools/needle-engine-support/tree/25f1ebe7c02fd86e3359456e306f188a36edd9c4

What is expected?

Vuepress builds

What is actually happening?

Error on building

[vite:load-fallback] Could not load /home/runner/work/needle-engine-support/needle-engine-support/documentation/.vuepress/.temp/internal/layoutComponents (imported by node_modules/@vuepress/client/dist/chunk-V3MKNX2O.js): ENOENT: no such file or directory, open '/home/runner/work/needle-engine-support/needle-engine-support/documentation/.vuepress/.temp/internal/layoutComponents'
✖ Compiling with vite - failed in 4.20s
Error: Could not load /home/runner/work/needle-engine-support/needle-engine-support/documentation/.vuepress/.temp/internal/layoutComponents (imported by node_modules/@vuepress/client/dist/chunk-V3MKNX2O.js): ENOENT: no such file or directory, open '/home/runner/work/needle-engine-support/needle-engine-support/documentation/.vuepress/.temp/internal/layoutComponents'
marwie commented 1 year ago

It works when using 2.0.0-beta.60