'FullCalendar Angular 13 error when importing npm library

I have an npm library which imports Angular FullCalendar v5 and everything works fine there. When i try to import my project library to another project and try access the full calendar frontend I got a warning and a message error in my browser console:

 - Warning: main.js:7358 Unknown option 'default'
 - Error: core.mjs:6476 ERROR TypeError: Language ID should be string or object.
    at new DateTimeFormat (<anonymous>)
    at buildNativeFormattingFunc (main.js:1218)
    at NativeFormatter.buildFormattingFunc (main.js:1211)
    at NativeFormatter.buildFormattingFunc (main.js:1009)
    at NativeFormatter.format (main.js:1154)
    at NativeFormatter.formatRange (main.js:1169)
    at DateEnv.formatRange (main.js:3984)
    at CalendarDataManager.buildTitle (main.js:6909)
    at CalendarDataManager.buildTitle (main.js:1009)
    at CalendarDataManager.updateData (main.js:7113)

I can't figure it out why but i know it's in this line of code at main.js (@fullcalendar/common/main.js) Line 1218 -> var normalFormat = new Intl.DateTimeFormat(context.locale.codes, standardDateProps); The error is that the variable context.locale.codes is undefined.

Can anyone help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source