dateutils.js and interface.js throwing constant errors
See original GitHub issueWhen importing and using Agenda, “d.toString” is undefined (undefined is not an object)(in Interface.js) When importing and using CalendarList “days[0].clone” is undefined (undefined is not an object)(in dateutils.js)
I freshly installed react-native-calendars (yarn add react-native-calendars). It will throw those named error right away. I tried installing earlier versions with no success.
I simply imported: import {Agenda} from “react-native-calendars”; and used “Agenda”. Same with CalendarList: import {CalendarList} from “react-native-calendars”;
TypeError: undefined is not an object (evaluating 'd.toString')
Packages:
"@react-native-firebase/app": "^14.5.0",
"@react-native-firebase/auth": "^14.5.0",
"@react-native-firebase/firestore": "^14.5.0",
"@react-navigation/bottom-tabs": "^6.2.0",
"@react-navigation/material-bottom-tabs": "^6.1.1",
"@react-navigation/material-top-tabs": "^6.1.1",
"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.5.0",
"react": "17.0.2",
"react-native": "0.67.2",
"react-native-calendars": "^1.1278.0",
"react-native-elements": "^3.4.2",
"react-native-gesture-handler": "^2.2.0",
"react-native-pager-view": "^5.4.11",
"react-native-reanimated": "^2.4.1",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^3.11.1",
"react-native-tab-view": "^3.1.1",
"react-native-vector-icons": "^9.1.0",
"reanimated-bottom-sheet": "^1.0.0-alpha.22",
"yarn": "^1.22.17"
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11
Top Results From Across the Web
Assigning object data to a typescript interface throws error
I'm getting this error: "Variable 'info' is used before being assigned." My code looks like this: export interface Info { name: ProductName; ...
Read more >JavaScript Date Reference - W3Schools
The Date object works with dates and times. Date objects are created with new Date() . There are four ways of instantiating (creating)...
Read more >A Definitive Guide to Handling Errors in JavaScript - Kinsta
Getting tripped up by errors in your JavaScript? We'll show you how to tame those errors so you can get back to developing...
Read more >HttpURLConnection - Android Developers
getInputStream() will throw an IOException . Use getErrorStream() to read the error response. The headers can be read in the normal way using...
Read more >Effective Dart: Design
Design consistent, usable libraries. ... But if you are implementing that class's interface, now your class has a static error because it lacks...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mein-beer-hu We are releasing a new version every two weeks.
It is actually solved by setting “selected” to a date. It seems, that it is not optional.