Vite build fails with `EISDIR: illegal operation on a directory, read` - how to debug?
I have an Eleventy project, and I'm trying to integrate Vite to build the assets. The
npm run prod
build works perfectly on localhost
and on GitHub Actions. However, every single time it fails on Cloudflare Pages, with EISDIR: illegal operation on a directory, read
.
Apart from the specific OS, all three environments are the same. There's nothing obviously wrong or suspect on the page it complains about (e.g. src=""
or other). The path is definitely a file and not a directory.
Any ideas what could cause this? How would I go about debugging this, since the problem seems specific to Cloudflare Pages - I can't reproduce it on local, and since the errored build isn't deployed, saved, or downloadable, I can't inspect the file it complains about.
Thanks in advance!0 Replies