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

Update devcontainer with chromium dependencies #52

Open
Bestra opened this issue Apr 26, 2022 · 0 comments
Open

Update devcontainer with chromium dependencies #52

Bestra opened this issue Apr 26, 2022 · 0 comments

Comments

@Bestra
Copy link

Bestra commented Apr 26, 2022

When attempting to npm install && npm run test in a fresh codespace, we initially see an error related to a missing shared library:

26 04 2022 14:32:23.081:ERROR [launcher]: Cannot start ChromeHeadless
        /workspaces/paste-markdown/node_modules/chromium/lib/chromium/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

Running

ldd /workspaces/paste-markdown/node_modules/chromium/lib/chromium/chrome-linux/chrome | grep not

shows a list of libraries similar to that in dtolstyi/node-chromium#52 (comment)

        libnss3.so => not found
        libnssutil3.so => not found
        libsmime3.so => not found
        libnspr4.so => not found
        libatk-1.0.so.0 => not found
        libatk-bridge-2.0.so.0 => not found
        libcups.so.2 => not found
        libdrm.so.2 => not found
        libxkbcommon.so.0 => not found
        libXcomposite.so.1 => not found
        libXdamage.so.1 => not found
        libXfixes.so.3 => not found
        libXrandr.so.2 => not found
        libgbm.so.1 => not found
        libpango-1.0.so.0 => not found
        libcairo.so.2 => not found
        libasound.so.2 => not found
        libatspi.so.0 => not found

^^ This correlates pretty well to https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix

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

No branches or pull requests

1 participant