question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Agenda Fatal Error - `TypeError - undefined is not an object (evaluating 'this[0][methodName]')`

See original GitHub issue

Description

Upon opening an Agenda, there’s an intermittent fatal error that happens one out of every four or five times coming from the xdate package. This started occuring after I upgraded RN to 0.68. Seems to be a race condition since it doesn’t happen every time.

Expected Behavior

Agenda opens without a fatal error causing an app crash.

Observed Behavior

Fatal error is thrown causing app crash.

Error (Fatal): 'TypeError - undefined is not an object (evaluating 'this[0][methodName]')

Environment

react-native-calendars: ^1.1288.1 (however, downgrading to 1.286.0 did not fix this issue. react-native: 0.68 device: macOS Monterey 12.5 Xcode simulator

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
vkourtiscommented, Sep 12, 2022

I had the same issue, but I think this might be fixed in 1.1289.0.

It used to happen consistently for a specific course of actions for me and not it doesn’t. Could be related to one of the CalendarList fixed that are mentioned in the changelog.

0reactions
genesisxyzcommented, Oct 26, 2022

Similar issue with the component ExpandableCalendar

TypeError: undefined is not an object (evaluating 'd['get' + (useUTC ? 'UTC' : '') + methodSubjects[fieldIndex]]')

I am using it with Expo SDK 46

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: undefined is not an object (evaluating 'this.text')
Let me know if it works, if not, point in the code where exactly is the error being thrown. For more information about...
Read more >
590375 - Chrome for iOS: TypeError: undefined is not an ...
Issue 590375: Chrome for iOS: TypeError: undefined is not an object (evaluating '__gCrWeb.autofill.extractForms'). Reported by schedule ejsa.
Read more >
receiving [TypeError: undefined is not an object (evaluating ...
I have a user input screen (AddTrack.js), in which I'm using the useState hook to capture input values. Have been trying to use...
Read more >
Accessing Outlook with error "TypeError: undefined is not an
err: TypeError: undefined is not an object (evaluating 'Owa.mail. ... I have the same problem, but did not turn on the "Beta" version....
Read more >
undefined is not an object (evaluating 'response.data')
But I always get this error when submiting a form. Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'response.data').
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found