mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-02 11:40:00 +00:00
[fix] Fix i18n collection script issues - Remove Nx from repository, fix TypeScript declare fields compilation, update Playwright configuration
This commit is contained in:
50
scripts/debug-i18n.cjs
Normal file
50
scripts/debug-i18n.cjs
Normal file
@@ -0,0 +1,50 @@
|
||||
const { chromium } = require('playwright');
|
||||
|
||||
(async () => {
|
||||
const browser = await chromium.launch({ headless: true });
|
||||
const page = await browser.newPage();
|
||||
|
||||
// Check console messages
|
||||
page.on('console', msg => {
|
||||
console.log(`[${msg.type()}]`, msg.text());
|
||||
});
|
||||
|
||||
page.on('pageerror', error => {
|
||||
console.log('Page error:', error.message);
|
||||
});
|
||||
|
||||
console.log('Navigating to http://localhost:5173...');
|
||||
await page.goto('http://localhost:5173');
|
||||
|
||||
const title = await page.title();
|
||||
console.log('Page title:', title);
|
||||
|
||||
// Wait for page to load
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
// Check console errors
|
||||
page.on('console', msg => {
|
||||
if (msg.type() === 'error') {
|
||||
console.log('Console error:', msg.text());
|
||||
}
|
||||
});
|
||||
|
||||
// Wait a bit more and check again
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
// Check what's on window
|
||||
const windowInfo = await page.evaluate(() => {
|
||||
const keys = Object.keys(window).filter(key => !key.startsWith('__'));
|
||||
return {
|
||||
hasApp: 'app' in window,
|
||||
hasLiteGraph: 'LiteGraph' in window,
|
||||
hasComfyApp: 'ComfyApp' in window,
|
||||
topKeys: keys.slice(0, 30),
|
||||
appType: typeof window['app']
|
||||
};
|
||||
});
|
||||
|
||||
console.log('Window info:', JSON.stringify(windowInfo, null, 2));
|
||||
|
||||
await browser.close();
|
||||
})();
|
||||
Reference in New Issue
Block a user