kit
kit copied to clipboard
@sveltejs/enhanced-img doesn't work on GitHub Actions
Describe the bug
When building a SvelteKit project using @sveltejs/enhanced-img
on GitHub, the build logs show the following message:
@sveltejs/enhanced-img: vite-imagetools is not installed. Skipping build-time optimizations
This results in images not being transformed and thus missing in the build output.
I've tried adding vite-imagetools
as a direct dependency with no luck. I've also been sure to keep the lockfile in sync with package.json.
Reproduction
To reproduce, build a SvelteKit project using @sveltejs/enhanced-img
with GitHub Actions.
Here are my config files:
Logs
> vite build
@sveltejs/enhanced-img: vite-imagetools is not installed. Skipping build-time optimizations
vite v5.0.11 building SSR bundle for production...
transforming...
✓ 94 modules transformed.
rendering chunks...
@sveltejs/enhanced-img: vite-imagetools is not installed. Skipping build-time optimizations
vite v5.0.11 building for production...
transforming...
✓ 85 modules transformed.
System Info
System:
OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
CPU: (4) x64 AMD EPYC 7763 64-Core Processor
Memory: 14.61 GB / 15.61 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.10.0 - /opt/hostedtoolcache/node/20.10.0/x64/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 10.2.3 - /opt/hostedtoolcache/node/20.10.0/x64/bin/npm
Browsers:
Chrome: 120.0.6099.109
Chromium: 120.0.6099.0
npmPackages:
@sveltejs/adapter-auto: ^3.1.0 => 3.1.0
@sveltejs/adapter-static: ^3.0.1 => 3.0.1
@sveltejs/enhanced-img: ^0.1.7 => 0.1.7
@sveltejs/kit: ^2.0.6 => 2.0.6
svelte: ^4.0.0 => 4.2.8
vite: ^5.0.5 => 5.0.11
Severity
serious, but I can work around it
Additional Information
No response