question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to execute lhci autorun

See original GitHub issue

Her is my lighthouserc.json { “ci”: { “collect”: { “numberOfRuns”: 2 }, “assert”: { “preset”: “lighthouse:recommended”, “assertions”: { “first-contentful-paint”: [ “error”, {“maxNumericValue”: 5000, “aggregationMethod”: “optimistic”} ], “interactive”: [“error”, {“maxNumericValue”: 9000, “aggregationMethod”: “optimistic”}] } }, “upload”: { “target”: “lhci”, “serverBaseUrl”: “https://lhci.example.com” } } }

the above json is a sample from gitdocs. when I run this “lhci autorun --config=./lighthouserc.json --url=https://nodejs.org/de/docs/guides/nodejs-docker-webapp/” it error outs like this. dchando-5de333:lighthouse-ci dchando$ lhci autorun --config=./lighthouserc.json --url=https://nodejs.org/de/docs/guides/nodejs-docker-webapp/ ✅ .lighthouseci/ directory writable ✅ Configuration file found ✅ Chrome installation found ⚠️ GitHub token not set Healthcheck passed!

Error: Unable to determine staticDistDir; Set it explicitly in lighthouserc.json at findBuildDir (/Users/dchando/.nvm/versions/node/v12.13.0/lib/node_modules/@lhci/cli/src/autorun/autorun.js:71:9) at Object.runCommand (/Users/dchando/.nvm/versions/node/v12.13.0/lib/node_modules/@lhci/cli/src/autorun/autorun.js:116:29) at run (/Users/dchando/.nvm/versions/node/v12.13.0/lib/node_modules/@lhci/cli/src/cli.js:93:24) at Object.<anonymous> (/Users/dchando/.nvm/versions/node/v12.13.0/lib/node_modules/@lhci/cli/src/cli.js:118:1) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10) at internal/main/run_main_module.js:17:11dchando-5de333:lighthouse-ci dchando$

And when i run " lhci assert --config=./lighthouserc.json --url=https://nodejs.org/de/docs/guides/nodejs-docker-webapp/" it gives me like this

"Checking assertions against 0 URL(s), 0 total run(s)

All results processed!"

Need solution on this thanks in advance

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
lili21commented, Dec 6, 2019

using --collect.url= instead of --url.

0reactions
patrickhulcecommented, Dec 6, 2019

Gotcha, glad it’s working for you now then! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Continuously optimize your website with Lighthouse CI
LHCI (Lighthouse CI) is a suite of tools that makes continuously running, saving, retrieving and asserting against Lighthouse results very easy.
Read more >
Continuous Performance Analysis with Lighthouse CI and ...
Install the Lighthouse CI tool and execute the lhci autorun command. Once you've set up the config file, you can commit and push...
Read more >
The Best Way to Automate Performance Checks in GitHub
We all want to build fast websites. But we don't want to manually run performance checks on every build. Right? Moving performance checks ......
Read more >
Lighthouse CI failing with cryptic errors on Azure DevOps ...
I'm running Lighthouse CI with a Azure DevOps YAML pipeline on a Windows agent and am getting cryptic errors. I run this command:...
Read more >
thegeeklab/lhci - Quay.io
Repository thegeeklab/lhci. ... No builds have been run for this repository. ... docker run -v $(pwd)/public:/drone/src lhci autorun # or pass arguments to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found