From 31b5b11ff2df914a602db1b1ee1619141d5be916 Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Sat, 27 Dec 2025 23:55:35 +1100 Subject: [PATCH] Add debug all imports --- debug-all-imports.mjs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 debug-all-imports.mjs diff --git a/debug-all-imports.mjs b/debug-all-imports.mjs new file mode 100644 index 0000000..82dad7b --- /dev/null +++ b/debug-all-imports.mjs @@ -0,0 +1,26 @@ +(async () => { + console.log('--- DEBUG IMPORTS ---'); + + try { + console.log('Importing check: lighthouse'); + const lighthouse = await import('lighthouse'); + console.log('Lighthouse keys:', Object.keys(lighthouse)); + console.log('Lighthouse Default type:', typeof lighthouse.default); + + console.log('Importing check: chrome-launcher'); + const chromeLauncher = await import('chrome-launcher'); + console.log('ChromeLauncher keys:', Object.keys(chromeLauncher)); + console.log('ChromeLauncher Default type:', typeof chromeLauncher.default); + console.log('ChromeLauncher Launch type:', typeof chromeLauncher.launch); + + console.log('Importing check: uuid'); + const uuid = await import('uuid'); + console.log('UUID keys:', Object.keys(uuid)); + console.log('UUID v4 type:', typeof uuid.v4); + console.log('UUID default type:', typeof uuid.default); + + } catch (e) { + console.error('CRITICAL IMPORT FAILURE:', e); + } + console.log('--- END DEBUG ---'); +})();