Calendar: Show Week Numbers


I’ve been using the Calendar App in one of my applications, and it previously displayed week numbers in my calendar using the following code in the OnCalendarScriptInit Event:

document.addEventListener('DOMContentLoaded', function() {
  var calendarEl = document.getElementById('calendar');

  var calendar = new FullCalendar.Calendar(calendarEl, {
    plugins: [ 'dayGrid' ],
    defaultView: 'dayGridMonth',
    weekNumbers: true


However, it appears that this functionality has stopped working after updating to Scriptcase Version 9.9.0018. The console shows the following error: Uncaught TypeError: e is not iterable
    at i (
    at i (
    at ua.buildPluginHooks (
    at ua.processRawCalendarOptions (
    at ua.computeOptionsData (
    at new ua (
    at new e.Calendar (
    at HTMLDocument.<anonymous> (?nmgp_outra_jan=true&nmgp_start=SC&4812:6:18)

How can we resolve this error, and what is the reason for this error suddenly occurring?

Best regards