i'm trying to load some images whose path is stored inside a JSON file, in reactjs. My JSON file contains an array of objects in which there is the path of my images. Inside my component, i map my JSON data and can access every properties. Nevertheless, when i try to load the image, it keeps showing me the same error : Uncaught Error: Cannot find module '.png' when loading from a json file.
Where i'm trying to load the image

I've added the import of my json file at the beginning of my file
import projects from "../data/importantProject.json"
Has anyone experienced the same issue ?
I tried to add a based url, and a "" as I saw on the web but it keeps showing me the same error.

