safak / next-blog

316 stars 318 forks source link

Error: data?.map is not a function.. #38

Closed ratneshpawar1 closed 7 months ago

ratneshpawar1 commented 7 months ago

ff

I tried many alternatives from the internet, not able to pin down the issue and I believe its to do with route.js but not able to solve this issue.

Can someone suggest?

satyamgit1 commented 7 months ago

when i also try to run the project its showing the same, if you find something please let me know

ratneshpawar1 commented 7 months ago

Hi Satyam, I was able to solve the issue. Screenshot 2024-02-11 115714

note: at line 19 Change "const data to "const {data}" ( as shown in the screenshot)