11ty / eleventy-plugin-vite

A plugin to use Vite with Eleventy
135 stars 10 forks source link

Github action build issue #36

Closed martonx closed 3 months ago

martonx commented 1 year ago

Hi, I have this public repository: https://github.com/martonx/vaporizer

Quite simple 11ty project with vite. But when my Github Actions runs, I got this error:

Run pnpm build

vaporizer-frontend@0.0.1 build /home/runner/work/vaporizer/vaporizer/Frontend npx @11ty/eleventy

[11ty] Writing _site/robots.txt from ./src/robots.txt.njk [11ty] Writing _site/sitemap.xml from ./src/sitemap.xml.njk [11ty] Writing _site/arak.html from ./src/arak.njk [11ty] Writing _site/aszf.html from ./src/aszf.njk [11ty] Writing _site/index.html from ./src/index.njk [11ty] Writing _site/Ellenorzes.html from ./src/Ellenorzes.njk [11ty] Writing _site/rolam.html from ./src/rolam.njk vite v4.3.8 building for production... ✓ 0 modules transformed. ✓ built in 77ms [vite:build-html] EISDIR: illegal operation on a directory, read file: /home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite/index.html [11ty] Encountered a Vite build error, restoring original Eleventy output to _site [Error: EISDIR: illegal operation on a directory, read] { errno: -21, code: 'PLUGIN_ERROR', syscall: 'read', pluginCode: 'EISDIR', plugin: 'vite:build-html', hook: 'transform', id: '/home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite/index.html', watchFiles: [ '/home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite/arak.html', '/home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite/aszf.html', '/home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite/index.html', '/home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite/Ellenorzes.html', '/home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite/rolam.html' ] } [11ty] Problem writing Eleventy templates: (more in DEBUG output) [11ty] ENOENT: no such file or directory, lstat '/home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite' (via Error) [11ty] [11ty] Original error stack trace: Error: ENOENT: no such file or directory, lstat '/home/runner/work/vaporizer/vaporizer/Frontend/.11ty-vite' [11ty] Copied 12 files / Wrote 7 files in 0.33 seconds (v2.0.1) transforming...  ELIFECYCLE  Command failed with exit code 1. Error: Process completed with exit code 1.

Here it is my repository: https://github.com/martonx/vaporizer

Please advice, why is it not working?

cbcf commented 1 year ago

Maybe your issue relates to #15? Your repo link (https://github.com/martonx/vaporizer) is not working. Please update if issue persists or consider closing this issue.

KiwiKilian commented 3 months ago

Closing this one due to no response from the creator. Feel free to comment again if your problem still persists and please provide a publicly available reproduction repository.