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.

Uncaught TypeError: Cannot read property 'isHiddenDay' of undefined

See original GitHub issue

I’ve created a Svelte implementation of FullCalendar and I have issues upgrading to v5.

I use rollup as my builder and a postcss plugin for the styles, and tried to follow this guide.

I try to initialize the calendar with these options:

let options = {
	initialView: 'dayGridMonth',
	plugins: [dayGridPlugin],
};

This is what I get in the browser’s console:

main.js:8102 Uncaught TypeError: Cannot read property 'isHiddenDay' of undefined
    at new DaySeriesModel (main.js:8102)
    at DayTableView.buildDayTableModel (main.js:1080)
    at DayTableView.buildDayTableModel (main.js:983)
    at DayTableView.render (main.js:1069)
    at T (preact.module.js:1)
    at g (preact.module.js:1)
    at j (preact.module.js:1)
    at T (preact.module.js:1)
    at g (preact.module.js:1)
    at T (preact.module.js:1)
  • This is the component implementation.
  • I can’t actually upload a live demo since I need a postcss plugin to handle the css-in-js.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:30 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
arshawcommented, Sep 3, 2020

I have some more insight into the problem. For some reason, when installing @fullcalendar/core and the plugins, npm is not deduping @fullcalendar/common. Sometimes there are multiple copies of it, nested within fullcalendar’s other dependencies.

@YogliB I was able to clone your repro and reproduce the error. When I reinstalled the deps, making a new lock file, things began to work:

rm -rf node_modules package-lock.json
npm install

I’m not sure why. I bet that trick will work for others.

9reactions
irfanonkcommented, Jul 10, 2020

I have got exact the same issue,(Cannot read property ‘isHiddenDay’ of undefined) so i searched and ended up here. then I realized that there wasn’t any “@fullcalendar/timegrid”: “^5.1.0”, in my package.json even I installed with npm install @fullcalendar/timegrid. so then I installed with npm install --save @fullcalendar/timegrid (with --save) and made sure that it’s in package.json dependencies, that eventually solved problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fullcalendar - Cannot read property 'DayGrid' of undefined
I haven't found a solution, on any site. Please help! The full error message is: Uncaught TypeError: Cannot read property 'DayGrid' of ...
Read more >
[FullCalendar 2] [FullCalendar2] Error "Cannot read property ...
I'm receiving this error and calendar is not showing: "Cannot read property 'getUTCFullYear' of null". They already find a quick solution for reactive....
Read more >
fullCalendar - getting error on page load - MDBootstrap
Actual behavior When I add references to the plugin, I get fullcalendar.min.js:30 Uncaught TypeError: Cannot read property 'fn' of undefined at Object.
Read more >
Some issues with the calendar | WordPress.org
Hi I have set 24 hour clock on the setting page but in the calendar still ... Uncaught TypeError: Cannot read properties of...
Read more >
Typeerror: Cannot Read Property 'Resourceareawidth' Of ...
Uncaught TypeError : Cannot read property 'isHiddenDay' of undefined. I've created a Svelte implementation of FullCalendar and I have issues upgrading to v5....
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