const fs = require('fs'); const content = fs.readFileSync('public/Cesium/Cesium.js', 'utf8'); // Search for pattern near the error string const idx1 = content.indexOf('Unrecognized'); console.log('Unrecognized at byte:', idx1); if (idx1 >= 0) { const start = Math.max(0, idx1 - 100); const end = Math.min(content.length, idx1 + 100); console.log('Context:', content.substring(start, end)); } // Also search for the string parts const searchTerms = ['unrecognized', 'uniform type']; for (const term of searchTerms) { let pos = 0; let count = 0; while ((pos = content.indexOf(term, pos)) >= 0 && count < 3) { const start = Math.max(0, pos - 60); const end = Math.min(content.length, pos + 60); console.log('\nFound "' + term + '" at byte', pos); console.log(' Context:', content.substring(start, end)); pos++; count++; } }