-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Missing/no images using vite-imagetools in dev mode #1195
Comments
I think this is a related pr that needs to be ported to vinxi https://github.com/nuxt/framework/pull/9602/files. This seems to fix it:
|
can you make a PR for this in vinxi? we should include this if it fixes things |
Alright i created a pr that seems to fix things. I am just unsure of any other negative affects |
Released a new version of vinxi (0.0.61) that fixes this. Give it a try (use this package.json). {
"name": "snuk",
"type": "module",
"scripts": {
"dev": "vinxi dev",
"build": "vinxi build",
"start": "vinxi start"
},
"dependencies": {
"@solidjs/meta": "^0.29.2",
"@solidjs/router": "^0.10.5",
"@solidjs/start": "^0.4.2",
"@vinxi/server-functions": "0.0.58",
"solid-js": "^1.8.7",
"vinxi": "0.0.61"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"vite-imagetools": "^6.2.8"
},
"pnpm": {
"overrides": {
"@vinxi/server-functions": "0.0.58"
}
}
} |
This works for me, thank both! FYI: I didn't need to use the pnpm overrides block. |
Duplicates
Latest version
Current behavior 😯
Running
pnpm run dev
results in no images (w/ vite-imagetools).Running
pnpm run build
results in a beautiful page with nicely resized images :)Expected behavior 🤔
I'd like to see images when running
pnpm run dev
too please :)Steps to reproduce 🕹
Steps:
Context 🔦
I want to resize images when building the website.
Your environment 🌎
The text was updated successfully, but these errors were encountered: