Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
This error seems to occur on slow networks. Looks like the MS code is waiting for "Office.initialize" to be initialized using a timeout loop.
You have to set Office.initialize to a dummy function BEFORE calling Office.onReady() or simply just use Office.initialize...
This works:
------------------------------------------
Office.initialize = () => {}; // MUST BE BEFORE Office.onReady
Office.onReady( (info) =>
{
console.log("Ready!");
})