mattlewis92 / angular-calendar

A flexible calendar component for angular 15.0+ that can display events on a month, week or day view.
https://mattlewis92.github.io/angular-calendar/
MIT License
2.72k stars 863 forks source link

v0.29.0 not working with Angular Universal #1557

Open andre-gois opened 2 years ago

andre-gois commented 2 years ago

Describe the bug

After upgrading to v0.29.0 SSR stopped working, reverting back to 0.28.28 fixes the problem Also tried on a clean Angular 13 project and the problem persists.

Versions

matts-bot[bot] commented 2 years ago

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me

BaptisteMahe commented 2 years ago

Same issue here, with@angular/core: 13.2.2, updating to 0.29 breaks in production. Strange thing is that the calendar works locally using ng serve but cashes in production.

With some research on the error it seems that it comes from this line of code in the template (but I don't know why): <h2>{{ viewDate | calendarDate:(currentView + 'ViewTitle'):'fr' }}</h2> (with viewDate: Date and currentView: CalendarView)

Reverting to 0.28.28 fixed the issue.