SOLUCION A: Error: Image with src {URL IMAGE} must use “width” and “height” properties or “layout=‘fill’” property.
Agregar los atributos width y height a la etiqueta Image que contiene nuestras imagenes de los articulos
<div className={styles.ProductItem}>
<Image src={product.images[0]} alt={product.title} width="100%" height="100%" layout="responsive" />
<div className={styles["product-info"]}>
<div>
<p>${product.price}</p>
<p>{product.title}</p>
</div>
<figure className={styles["more-clickable-area"]} onClick={() => handleClick(product)} >
{state.cart.includes(product) ? <img className={styles["disabled add-to-cart-btn"]} src={addedToCartImage} alt="added to cart" /> : <Image className={styles["add-to-cart-btn pointer"]} src={addToCartImage} alt="add to cart"
/>}
</figure>
</div>
</div>
¿Quieres ver más aportes, preguntas y respuestas de la comunidad? Crea una cuenta o inicia sesión.