N
Nuxt2y ago
Eric

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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Eric
EricOP2y ago
<img src="images/deco/enveloppe.jpg" >
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Eric
EricOP2y ago
oh with an extra / in front?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Eric
EricOP2y ago
ok I'll add / on all images then. Do you know why it works locally but not on netlify?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Eric
EricOP2y ago
ooh. ok. thanks! I'll correct my files! Great! It works now!! thank you so much!!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server