stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

Unable to build with react-snap on Bitbucket #476

Open NikhilPunwaney opened 4 years ago

NikhilPunwaney commented 4 years ago

Bug Report

Running a build on Bitbucket fails with: Error: Failed to launch chrome! TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md at onClose (/opt/atlassian/pipelines/agent/build/node_modules/react-snap/node_modules/puppeteer/lib/Launcher.js:348:14) at ChildProcess. (/opt/atlassian/pipelines/agent/build/node_modules/react-snap/node_modules/puppeteer/lib/Launcher.js:339:64) at ChildProcess.emit (events.js:315:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12) at onErrorNT (internal/child_process.js:469:16) at processTicksAndRejections (internal/process/task_queues.js:84:21) error Command failed with exit code 1.

My pipeline commands:

I have added react-snap ^1.23.0 to devDependencies in package.json.

In the same package.json file, I have added the following config (I have tried every combination of including and excluding the various fields): "reactSnap": { "puppeteerArgs": [ "--no-sandbox", "--disable-setuid-sandbox" ], "puppeteerExecutablePath": "/usr/bin/chromium-browser" }

BalaRajendran commented 4 years ago

Same Issues I'm also facing