Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Why don't my images show up on vercel whilst using sveltekit? [duplicate]

$
0
0

I've created a SvelteKit project, then I wanted to deploy it with Vercel. Upon opening the website, the functionality works. However, the images are not appearing and there is the error message "Failed to load resource: the server responded with a status of 404 (Not Found)" in the console.

I had my images as png files in a img folder inside of the src folder and I thought that vercel couldn't detect the img folder in the src folder, so I tried moving the img folder into the lib folder and changed the "/src/..." (which usually worked by opening on a localhost) reference to the $lib alias resulting to "$lib/..." . This code already failed to work, when it was opened via localhost, so that idea failed and I didn't have any other ideas.


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>