With Chrome my code renders an image just fine using the Shopify suggested code for accessing images.
const images = require.context(‘../images’, true)
const imagePath = (name) => images(name, true)
<img src={ imagePath(‘./logo.png’) } className = “object-center object-contain h-48 w-full p-2” /> // render an image in DOM
If I examine the image address is comes across as:
/packs/media/images/logo-52b3521f113a0775455187c787456a3b.png
Any hey, that address renders the image just fine… so it is a correct URI to the image. Yet Safari refuses to render the image? Say what?
But Safari renders just an image placeholder? What? I am frustrated by this. Why is this a thing? The console has no errors from Safari, but it seems to choke on rendering images. What am I doing wrong here?