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.

Comments
Post a Comment