Unable to execute lhci autorun
See original GitHub issueHer 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:
- Created 4 years ago
- Comments:9
using
--collect.url=
instead of--url
.Gotcha, glad it’s working for you now then! 😃