angular-calendar icon indicating copy to clipboard operation
angular-calendar copied to clipboard

v0.29.0 not working with Angular Universal

Open andre-gois opened this issue 4 years ago • 2 comments

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

  • @angular/core: 12.02
  • angular-calendar: v0.29.0
  • Browser name and version: Chrome v98

andre-gois avatar Feb 11 '22 11:02 andre-gois

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

matts-bot[bot] avatar Feb 11 '22 11:02 matts-bot[bot]

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.

BaptisteMahe avatar Feb 17 '22 15:02 BaptisteMahe