-
Notifications
You must be signed in to change notification settings - Fork 2
Troubleshooting
Cause: PurgeCSS removed CSS classes that are added dynamically by JavaScript at runtime. The purger only sees classes in the static HTML, so it thinks the dynamic ones are unused.
Fix: Re-export with CSS purging disabled:
npx tsx src/index.ts https://example.com --no-purgeOr in the Web UI, check "Skip CSS purge" under Advanced options.
Cause: The default page limit is 50, or the depth limit cut off deeper pages.
Fix: Increase the limits:
npx tsx src/index.ts https://example.com --max-pages 200 --max-depth 5Cause: The site has many pages, or JavaScript dependency resolution is scanning a large module tree.
Fix: Try these options to speed things up:
- Lower
--max-pagesto limit scope. - Set
--max-depth 1or--max-depth 2to avoid crawling deep into the site. - Use
--skip-depsto skip JavaScript module scanning. - Use
--safe-modeto disable JavaScript entirely (fastest, but cannot render SPAs).
Cause: The browser may not have loaded those resources during the crawl (lazy-loaded content, or the page was not scrolled).
Fix: Currently there is no automatic scroll-to-bottom feature. If important assets are missing, try visiting the page with --no-headless to see what is happening during the crawl.
Cause: Another program (antivirus, file indexer, or a previous Node process) has a lock on files in the output directory.
Fix:
- Close any file explorer windows pointing to the
output/folder. - Stop any running Uncage server processes.
- Try again. If the problem persists, restart your terminal.
Cause: Some sites detect automated browsers and serve a CAPTCHA or blank page.
Fix: Uncage uses stealth plugins to avoid detection, but some sites are aggressive. There is no guaranteed workaround. Only clone sites you have permission to access.
Cause: Another instance of Uncage (or another program) is using that port.
Fix: Start the UI on a different port:
npx tsx src/index.ts --port 9000Cause: Playwright's Chromium binary was not installed.
Fix:
npx playwright install chromium