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 properties of undefined (reading 'rowOffsets') #1743

Open
xmrhahnx opened this issue Sep 6, 2024 · 2 comments
Open

Cannot read properties of undefined (reading 'rowOffsets') #1743

xmrhahnx opened this issue Sep 6, 2024 · 2 comments

Comments

@xmrhahnx
Copy link

xmrhahnx commented Sep 6, 2024

Describe the bug

Hi there, I'm just trying to get started with the angular-calendar but it doesn't show anything and in console I see the error:

Cannot read properties of undefined (reading 'rowOffsets')

Minimal reproduction of the problem with instructions

There it is my app.modules.ts:

imports: [ ... CalendarModule.forRoot({ provide: DateAdapter, useFactory: adapterFactory }), ],

and in the app.component.html I just added

<mwl-calendar-month-view></mwl-calendar-month-view>

Versions

  • @angular/core: 16.2.0
  • angular-calendar: 0.31.1
  • Browser name and version: Chrome 128.0.6613.120
@matts-bot
Copy link

matts-bot bot commented Sep 6, 2024

Thanks so much for opening an issue! If you'd like to support this project, then please consider sponsoring me

@honzaulrych
Copy link

The CalendarMonthViewComponent has required attributes viewDate and events (docs). You can try simple new Date() for viewDate and empty array [] for events.

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

2 participants