Open keshav263 opened 1 year ago
For me its:
Error: Failed to launch chrome! /codebuild/output/src323254157/src/outdoor-frontend/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
For me its:
Error: Failed to launch chrome! /codebuild/output/src323254157/src/outdoor-frontend/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
I Solve that error with this code in your package.json
"reactSnap": {
"source": "./dist",
"puppeteerArgs": [
"--no-sandbox",
"--disable-setuid-sandbox"
]
},
But now i have a new error 2023-11-08T00:05:40.792Z [INFO]: 🔥 pageerror at /: SyntaxError: Unexpected token '?' 2023-11-08T00:05:41.745Z [INFO]: ️️️💬 console.log at /: Failed to load resource: the server responded with a status of 403 () 2023-11-08T00:05:42.808Z [INFO]: ✅ crawled 1 out of 1 (/)
For me its:
Error: Failed to launch chrome! /codebuild/output/src323254157/src/outdoor-frontend/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
I Solve that error with this code in your package.json
"reactSnap": { "source": "./dist", "puppeteerArgs": [ "--no-sandbox", "--disable-setuid-sandbox" ] },
But now i have a new error 2023-11-08T00:05:40.792Z [INFO]: 🔥 pageerror at /: SyntaxError: Unexpected token '?' 2023-11-08T00:05:41.745Z [INFO]: ️️️💬 console.log at /: Failed to load resource: the server responded with a status of 403 () 2023-11-08T00:05:42.808Z [INFO]: ✅ crawled 1 out of 1 (/)
"reactSnap": { "puppeteerArgs": ["--no-sandbox", "--disable-setuid-sandbox"] },
By adding this is working fine when I deploy to vercel. But have same problem with AWS Amplify
Bug Report
Current Behavior
Everything works fine on the amplify, the build command succeeds and as soon as crawling is finished. I get an error non zero exit code. The logs are not at all helpful. Can someone please help me out. I have been stuck at it for days
These are the complete logs