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.

dateutils.js and interface.js throwing constant errors

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

2reactions
Inbal-Tishcommented, Mar 9, 2022

@mein-beer-hu We are releasing a new version every two weeks.

2reactions
CrypticMindzcommented, Feb 24, 2022

It is actually solved by setting “selected” to a date. It seems, that it is not optional.

Read more comments on GitHub >

github_iconTop 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 >

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