outaTiME
05/21/2022, 9:13 PMchrome-aws-lambda
working with nodejs16.x
when I deploy it (locally it works without problems), did anyone get it? If I use version 14 of node it works perfectly, I attach the error message:
"Failed to launch the browser process!\n/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: <https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md>\n",
"stack": [
"Error: Failed to launch the browser process!",
"/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory",
"",
"",
"TROUBLESHOOTING: <https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md>",
"",
" at onClose (/opt/nodejs/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)",
" at Interface.<anonymous> (/opt/nodejs/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:183:68)",
" at Interface.emit (node:events:532:35)",
" at Interface.close (node:readline:586:8)",
" at Socket.onend (node:readline:277:10)",
" at Socket.emit (node:events:532:35)",
" at endReadableNT (node:internal/streams/readable:1346:12)",
" at processTicksAndRejections (node:internal/process/task_queues:83:21)"
Maybe https://github.com/alixaxel/chrome-aws-lambda / https://github.com/shelfio/chrome-aws-lambda-layer doesn’t support node 16 yet? 🤔
If you try to deploy the example (https://github.com/serverless-stack/serverless-stack/tree/master/examples/layer-chrome-aws-lambda) you will see the error that I am telling youMeris Tarhanis
05/23/2022, 12:11 PMoutaTiME
05/23/2022, 12:18 PMnodejs14.x
😪Meris Tarhanis
05/23/2022, 12:20 PMoutaTiME
05/23/2022, 12:24 PMFrank
Meris Tarhanis
05/25/2022, 5:00 PM