Comments (4)
Hey @Redemption198
Thanks for taking the time to make this issue and looking into it. I've identified the issue and pushed up a fix in 0.3.22.
Please let me know if you have anymore issues :)
Thank you for the quick fix, it works perfectly now! And also for creating this awesome tool!
Would it be possible to only throw a warning when the CHROME_PATH variable isn't set? Maybe displaying a message saying that unlighthouse requires Chrome to work and is disabled until installed.
from unlighthouse.
Hey @Redemption198
Thanks for taking the time to make this issue and looking into it. I've identified the issue and pushed up a fix in 0.3.22.
Please let me know if you have anymore issues :)
from unlighthouse.
There should already be handling for this case, see: https://github.com/harlan-zw/unlighthouse/blob/main/packages/core/src/resolveConfig.ts#L90
It uses https://github.com/GoogleChrome/chrome-launcher first, which uses the CHROME_PATH variable I guess? If that fails, it tries to find a puppeteer
dependency, which is recommended in the docs to install if you don't have chrome. Finally it should throw an error
logger.fatal('Failed to find a chrome / chromium binary to run. Add the puppeteer dependency to your project to resolve.', e)
logger.info('Run the following: \`npm install -g puppeteer\`')
process.exit(0)
Is there a reliable way to bypass this?
from unlighthouse.
The CHROME_PATH error was: ERROR Cannot start nuxt: The CHROME_PATH environment variable must be set to a Chrome/Chromium executable no older than Chrome stable.
I was getting the error because I'm on a fresh install of Linux and didn't have any chrome/chromium browser installed, I tried installing ungoogled chromium but it didn't recognize it, while installing regular chrome from the rpm repository works fine.
Now I'm facing new errors, I had to force a fresh installation of Nuxt due to the RC0 release.
If I use yarn
, unlighthouse can't find the following packages: @unlighthouse/core
, @unlighthouse/webpack
and @unlighthouse/vite
(Installing each package manually "fixes" the issue)
If instead I use npm
I get this error Unsupported URL Type "link:": link:../../packages/core
from unlighthouse.
Related Issues (20)
- CI scans failing since v0.11.6
- add "last updated" date / time to static report HOT 1
- Catastrophic Score HOT 7
- "Lighthouse failed to run performance audits for "/", adding back to queue." , in order to find the cause of the problem HOT 4
- Add support for LHCI basic auth HOT 1
- Mismatch between test site url and x-default causes no pages to be scanned HOT 2
- IndexedDB support HOT 1
- Running unlighthouse in Jenkins Chromium error
- tsconfig/base.json file missing in v0.12.2 HOT 11
- CORS issue when viewing the results on Windows HOT 1
- Usage on a self-hosted server? HOT 2
- Crawling Website does not use extra headers specified in configuration HOT 6
- How to disable crawler mode using cli HOT 1
- Unlighthouse not supporting with URL contains "dot (.)"
- Bump ws to 8.17.1 HOT 2
- Can multiple reports from different websites be display? HOT 2
- How to set Rate Limit? HOT 2
- Remove FID column on Performance tab
- SyntaxError: Unexpected token 'with' HOT 2
- Puppeteer Worker only allows .html or no declared extension
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unlighthouse.