docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

bin/grunt exec "error while loading shared libraries"

Open abdel-aouby opened this issue 9 months ago • 0 comments

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

abdel-aouby avatar Jun 03 '24 10:06 abdel-aouby