Suddenly getting error cannot read properties of undefined( reading 'config')

Hi Kristof,
it’s good of you to reply. It’s a completely empty dynamic page! The code is quite simple

$w.onReady(function () {
  $w("#eventsDynamicDataset").onReady(() => {
    populateCalculatedFields();
  } );
 
  $w("#eventsDynamicDataset").onCurrentIndexChanged( (index) => {
    populateCalculatedFields();
  } );
} );
function populateCalculatedFields() {
  let currentItem = $w("#eventsDynamicDataset").getCurrentItem();
  $w("#dateLocation").text =  currentItem.scheduleFormatted+' | '+currentItem.locationName;
}

The console log doesn’t give a line number. All very odd