Uncaught RangeError: Invalid array length at Cesium3DTileset at async InitializeMaps

I am getting this error while trying to start the map , not know why and how its occurring and indicating towards these line of code when i am migrating to vite from craco .

let photoTileset, terrainProvider3D;

async function initializeMaps() {
terrainProvider3D = await Cesium.createWorldTerrainAsync();
photoTileset = await Cesium.createGooglePhotorealistic3DTileset();
}
await initializeMaps();

There shouldn’t be anything wrong with this code itself. Can you provide a stack trace (preferably an unminified one)? Mabe that helps to narrow it down…