Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LanternError: Invalid dependency graph created, cycle detected #16374

Open
3 tasks done
markbmullins opened this issue Mar 9, 2025 · 2 comments
Open
3 tasks done

LanternError: Invalid dependency graph created, cycle detected #16374

markbmullins opened this issue Mar 9, 2025 · 2 comments

Comments

@markbmullins
Copy link

FAQ

URL

https://www.churchandunioncharleston.com/

What happened?

LanternError: Invalid dependency graph created, cycle detected

const command = `npx lighthouse '${business.url}' --chrome-flags="--headless=new --disable-gpu --no-sandbox" --output=json,html --output-path=${businessTempDir}/${reportBaseName} --only-categories=performance,seo,accessibility,best-practices --form-factor=mobile --throttling.rttMs=150 --throttling.throughputKbps=1638 --throttling.cpuSlowdownMultiplier=4  --save-assets --quiet`;

Trace logs:

report-business-105-1741555332181-0.devtoolslog.json
report-business-105-1741555332181-0.trace.json

What did you expect?

The lighthouse script to report the website without error.

What have you tried?

I've tried playing around with different args like removing the throttling, but get the same result.

How were you running Lighthouse?

CLI

Lighthouse Version

12.4.0

Chrome Version

No response

Node Version

v22.10.0

OS

Mac os

Relevant log output

@markbmullins
Copy link
Author

It appears to be the performance category causing the issue.

This errors:

npx lighthouse 'https://www.churchandunioncharleston.com/' --chrome-flags="--headless=new --disable-gpu --no-sandbox" --output=json,html --output-path=./lighthouse-report --only-categories=performance,seo,accessibility,best-practices --form-factor=mobile --throttling.rttMs=150 --throttling.throughputKbps=1638 --throttling.cpuSlowdownMultiplier=4 --save-assets --quiet

This does not:

npx lighthouse 'https://www.churchandunioncharleston.com/' --chrome-flags="--headless=new --disable-gpu --no-sandbox" --output=json,html --output-path=./lighthouse-report --only-categories=seo,accessibility,best-practices --save-assets --quiet

and this does not:

npx lighthouse 'https://www.churchandunioncharleston.com/' --chrome-flags="--headless=new --disable-gpu --no-sandbox" --output=json,html --output-path=./lighthouse-report --only-categories=seo,accessibility,best-practices --form-factor=mobile --throttling.rttMs=150 --throttling.throughputKbps=1638 --throttling.cpuSlowdownMultiplier=4 --save-assets --quiet

@adamraine
Copy link
Member

Yeah this is pretty easy to reproduce. Seems to happen in the trace engine.

I uploaded the performance trace to https://trace.cafe/t/eJP0YJ9SBw, and opening the console on that page shows a similar error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants