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

Cannot read property 'object' of undefined #37

Open
iamgraeme opened this issue May 27, 2019 · 8 comments
Open

Cannot read property 'object' of undefined #37

iamgraeme opened this issue May 27, 2019 · 8 comments

Comments

@iamgraeme
Copy link

Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
at Object. (/Users/graeme/Next/rainbow_recovery_next/node_modules/react-event-calendar/dist-modules/components/CalendarDay.js:76:36)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/graeme/Next/rainbow_recovery_next/node_modules/react-event-calendar/dist-modules/index.js:19:20)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)

@danishuahmad
Copy link

Encountered with same issue. Looking forward!

@KatyORourkee
Copy link

I am getting the same error. Any updates?

@danishuahmad
Copy link

@KatyORourkee Nope! I just improvised by using jquery plugin and injecting jquery code in my components.

@loicprodhom
Copy link

I've peered into the library and it seems it's using the (previously deprecated, now deleted) React.PropTypes module.
I recommend either installing the proptypes module via
npm install prop-types
and import it using
import PropTypes from 'prop-types';
as well as rewriting the bits of code that use it.
Or you can simply use this event calendar :
https://github.com/intljusticemission/react-big-calendar

@WesUnwin
Copy link

Got this immediately on using this library. Would definitely want this fixed to use this library

@arnyboy101
Copy link

Same issue for me, looking into changing libraries.

@mkkaushiksjce
Copy link

CalendarDay.propTypes = {
day: React.PropTypes.object.isRequired,
isToday: React.PropTypes.bool,
events: React.PropTypes.array,
onClick: React.PropTypes.func,
};

These are the propTypes the library is expecting and day is required.
I'm not able to figure out the value of the date (Object)

@iCrashed
Copy link

iCrashed commented Apr 9, 2022

Got same issue upon immediately using the library.

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

8 participants