Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error solved #203

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Runtime error solved #203

merged 1 commit into from
Oct 31, 2024

Conversation

inkerton
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

vercel bot commented Oct 31, 2024

@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.

@TenzDelek TenzDelek merged commit faf70bf into TenzDelek:main Oct 31, 2024
0 of 2 checks passed
@TenzDelek TenzDelek added good first issue Good for newcomers gssoc-ext gssoc event hacktoberfest-accepted hacktoberfest Level 2 labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers gssoc-ext gssoc event hacktoberfest-accepted hacktoberfest Level 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants