Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Add headless Chrome support with libgtk-3-0 #90

Merged
merged 1 commit into from
Nov 3, 2017
Merged

Add headless Chrome support with libgtk-3-0 #90

merged 1 commit into from
Nov 3, 2017

Conversation

vangberg
Copy link
Contributor

We are using https://github.com/addyosmani/critical to generate critical CSS as part of the build process. Critical uses headless Chrome behind the scenes, which currently fails on Netlify:

5:26:24 PM: (node:866) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to launch chrome!
/opt/build/repo/node_modules/puppeteer/.local-chromium/linux-499413/chrome-linux/chrome: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory


TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
5:26:24 PM: (node:866) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The only missing part is libgtk-3-0. With that installed, it works.

@aaronshaf
Copy link

Same problem here

@calavera
Copy link
Contributor

calavera commented Nov 3, 2017

LGTM

@calavera calavera merged commit e885ed8 into netlify:master Nov 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants