Next.js Discord

Discord Forum

How do I fetch images from Pexels api and display on screen using Image in next 13.

Unanswered
Siamese Crocodile posted this in #help-forum
Open in Discord
Avatar
Siamese CrocodileOP
I'm trying to get the images from Pexels api and render it on screen but it's throwing me error that map doesn't exist on photos.
Image

12 Replies

Avatar
Masai Lion
try maybe this
{pictures.map((pic) => (

)}
change {} to ()
@Siamese Crocodile
Avatar
Siamese CrocodileOP
It has been resolved but there's another problem I'm not able to render images in Image component there's some error about next.config.js or something about remotePatterns
Avatar
Masai Lion
it was solved doing what i told you
can i see the other error ?
Avatar
Siamese CrocodileOP
no I somehow resolved it
yes I'll send the ss
Image
Image
it throws 403 forbidden
Avatar
Siamese CrocodileOP
resolved !