lino-levan / astral

A high-level puppeteer/playwright-like library for Deno
https://jsr.io/@astral/astral
MIT License
216 stars 10 forks source link

Better error message for missing chromium system dependencies #82

Closed lino-levan closed 1 month ago

lino-levan commented 2 months ago

In some situations (like in docker containers), we fail to boot the binary because of missing system dependencies. Here is an example log:

/home/vscode/.cache/astral/125.0.6400.0/chrome-linux64/chrome: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory

Process exited with code 127
error: Uncaught (in promise) Error: Your binary refused to boot
    throw new Error("Your binary refused to boot");

We should show a pretty error that tells the user what command to run to fix this.