react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

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

Open tsalama opened this issue 2 years ago • 4 comments

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

tsalama avatar Aug 25 '22 22:08 tsalama

same issues for me "react": "18.0.0", "react-native": "0.69.4", "react-native-calendars": "^1.1288.0",

nhinq2 avatar Aug 28 '22 04:08 nhinq2

We are experiencing the same error but with the CalendarList component: "react": "18.0.0", "react-native": "0.69.5", "react-native-calendars": "^1.1288.2",

kizaonline avatar Sep 01 '22 03:09 kizaonline

Same error with CalendarList but only for Android:

"react": "18.0.0", "react-native": "0.69.4", "react-native-calendars": "^1.1287.0",

stefanofgithub avatar Sep 01 '22 09:09 stefanofgithub

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.

vkourtis avatar Sep 12 '22 13:09 vkourtis

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

genesisxyz avatar Oct 26 '22 09:10 genesisxyz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 26 '23 07:01 stale[bot]

This issue was resolved for us by updating to version 1.1289.0

kizaonline avatar Jan 29 '23 04:01 kizaonline

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 01 '23 12:05 stale[bot]