First, really appreciate the help. It is most appreciated. After adding the console.log as suggested above the results in production mode vs. non-production mode are not too different. It looks like non-production mode created the whole DIV with the rendered data and Production Mode just created the shell of the DIV. Files attached.
So from a code perspective it is failing on the this.dp.init(). So the DIV placeholder was already established when the DayPilot.Scheduler() instance was created.
const root2 = this.refs.mainCalendar;
console.log('##This is the refs root ' + JSON.stringify(root2));
console.log('##This is the refs root ', root2);
console.log('##Before creating the scheduler ');
this.dp = new window.DayPilot.Scheduler(root2);
this.dp.snapToGrid = false;
this.dp.useEventBoxes = "Never";
this.dp.treeEnabled= true;
this.dp.treePreventParentUsage= true;
this.dp.heightSpec= "Max";
this.dp.height= 500;
this.dp.eventMovingStartEndEnabled= true;
this.dp.eventResizingStartEndEnabled= true;
this.dp.timeRangeSelectingStartEndEnabled= true;
this.dp.scale = "Week";
this.dp.timeHeaders= [
{groupBy: "Month", format: "MMMM yyyy"},
{groupBy: "Week", format: "d"}
];
this.dp.days = 365;
this.dp.cellWidthSpec="Fixed"
this.dp.cellWidth=40;
<removed the section where data is being loaded to keep this smaller>
this.dp.resources = resources;
this.dp.events.list = events;
this.dp.init();
Failure message at this point
'Error loading dayPilot' - Cannot read properties of undefined (reading 'indexOf')