-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Vue components cannot reference images in public folder #9328
Comments
There seems to be a bug in the Vue Vite plugin causing the related setting to not work properly. A bit of a clunky workaround in the meantime: import { defineConfig } from "astro/config";
import vue from "@astrojs/vue";
// https://astro.build/config
export default defineConfig({
integrations: [
vue({
template: {
transformAssetUrls: {
includeAbsolute: false,
},
},
}),
],
}); You might get a type error with this, but it should work, at least! |
Same here. When the
|
Another workaround that worked for me was change |
i had the same prob but this worked for me thank you :) |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
References images in
/public
seems to be broken in Vue components:What's the expected result?
I'd expect to see an image displayed. This works in Astro 2.x, and it works in an .astro component in 4.x.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-njmj9o
Participation
The text was updated successfully, but these errors were encountered: