TenzDelek / DearDiary

A Digital Diary in this modern world
https://dear-diary-black.vercel.app
26 stars 50 forks source link

Runtime error solved #203

Closed inkerton closed 3 weeks ago

inkerton commented 3 weeks ago

Description

Found a bug? Please fill out the sections below. 👍

Issue Summary The error message "TypeError: entries.map is not a function" in your Next.js project means that you're trying to use the .map() function on something that isn't an array. This function is specifically for working with arrays.

Zero value cases are not considered where entries might be empty to avoid errors. You can do this by checking the length of the array and conditionally rendering the mapped elements. After searching through all the pages all api calls everything The data was being checked I e=realized it was a matter of rechecking the type of enteries.

Related Issue

Fixes # (issue) #171

Type of change

Checklist

vercel[bot] commented 3 weeks ago

@inkerton is attempting to deploy a commit to the deleksharpgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.