I have created a NodeJS app which is using Puppeteer. Locally (Windows) it is working totally fine, but when I wanted to deploy the app on a shared hosting platform (Linux Server), I got the following error:
Error: Failed to launch the browser process!\n/var/app/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome: error while loading shared libraries: libatk-bridge-2.0.so.0: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n"
The only solution I found was to install the missing libatk-bridge dependency with
sudo apt-get install -y libgbm-dev
but the problem is, I don't have the rights to do so on the shared hosting platform.
Is there any workaround to solve the issue? Or is there a way to embed the library as a static library instead of a shared library?
Thank you in advance!