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

TypeError: listEventsCalendar.map is not a function #5

Open
sachowdhary786 opened this issue Mar 22, 2023 · 1 comment
Open

TypeError: listEventsCalendar.map is not a function #5

sachowdhary786 opened this issue Mar 22, 2023 · 1 comment

Comments

@sachowdhary786
Copy link

When attempting to run the project, I come across an issue where it states that listEventsCalendar.map is not a function in the EventCalendar.ts file

@krdq-sourse
Copy link

Obviously, the problem is that you haven't deployed the backend. Go to src/pages/index.tsx file and in line 36 replace
const listAllEventsCalendar = mapArrayEventCalendar(eventsCalendar); to const listAllEventsCalendar = (typeof eventsCalendar === 'function') ? mapArrayEventCalendar(eventsCalendar) : null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants