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

bin/grunt exec "error while loading shared libraries" #1167

Open
abdel-aouby opened this issue Jun 3, 2024 · 0 comments
Open

bin/grunt exec "error while loading shared libraries" #1167

abdel-aouby opened this issue Jun 3, 2024 · 0 comments

Comments

@abdel-aouby
Copy link

abdel-aouby commented Jun 3, 2024

Description
after installing a new package with grunt. and running bin/grunt exec
the command returns an error

/var/www/html/node_modules/.../node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

the TROUBLESHOOTING link provides a solution for Linux users to Getting headless Chrome up and running in Docker
by To fix, you'll need to install the missing dependencies and the latest Chromium package in your Dockerfile
I would like to know if this container shouldn't be part of this project as it already supports grunt or is it out of scope and it all depends on which package you installed.

Steps To Reproduce

  1. add any package by npm install PACKAGE_NAME --save-dev
  2. run bin/grunt exec

Expected Result
bin/grunt exec will succeed

Actual Result
bin/grunt exec fails with an error

/var/www/html/node_modules/.../node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

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