Are you having trouble using a dynamic image that you want to import from your assets folder? When you looped your array of objects, did your images not show up? But it works when you use a single image, right? Just use this code: new URL(`./assets/images/image-1.jpg`, import.meta.url).href , Please don't forget to comment if this article helps you in any way or solves your problem. Thank you.
learn with haider
I'm Haider, a web developer for 2 years. I make websites that work well and look good. I like coding and enjoy taking on new challenges.