images in public forlder?
My images are stored in public/images/my-image.jpg
Is there a problem with that?
My app is deployed to netlify from it's gihub repo. But the deploys fail with an error saying :
[vite]: Rollup failed to resolve import "images/enveloppe.jpg" from "pages/contact.vue".
10:30:41 PM: This is most likely unintended because it can break your application at runtime.
It works fine locally, but won't deploy to netlify.
Any idea?
thanks!
eric
9 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
<img src="images/deco/enveloppe.jpg" >
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh with an extra / in front?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok I'll add / on all images then. Do you know why it works locally but not on netlify?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ooh. ok. thanks! I'll correct my files!
Great! It works now!! thank you so much!!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View