Hi all,
I am an absolute newie and I am stuck! I deployed my site and it all seems fine. However, when I put any city/location in the search bar, the information such as temperature changes. But the corresponding image doesn’t show. e.g, it is a cloudy day in Paris, but there is no image, just the alternative text description of the image. I then downloaded the zip files of the deployed site and it is missing my src file which is on Github. I tried removing it, deploying the site, then adding it again but that doesn’t work. The deploy log also says ‘no new files added’, even though I did add them right before I deployed the site. Any help or insight would be greatly appreciated.
Of course! Here is the github link : sojoz/weather-app-jz (github.com), and I will paste the deploy log (once I figure out how because I cant have more than 4 links or something)
Everything might work find in development mode because of the way many frameworks run. This isn’t a Netlify-specific issue because the same occurs locally when running npm run build.
Edit
Another option is to import the image individually in index.js e.g.
import rainIcon from "./svg/rain.svg"
// more code
weatherIcon.src = rainIcon;
// more code