Docker: puppeteer not working on a Express (NestJS) app

Thanks @joaquimley, from the error you provided, it sounds like it’s not able to find the chromium executable at that path. There may be some issues with the embedded version of chromium that puppeteer provides. Some other folks that have run into this error seem to have had success by running chromium from /usr/bin/chromium-browser instead of the default path that puppeteer provides - that may be worth a shot. I found this thread to be helpful: Error: Failed to launch chrome! spawn /app/node_modules/puppeteer/.local-chromium/linux-609904/chrome-linux/chrome ENOENT · Issue #3994 · puppeteer/puppeteer · GitHub

1 Like