Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flolu/bazel-node-puppeteer

Can't run Bazel nodejs_image with Puppeteer
https://github.com/flolu/bazel-node-puppeteer

bazel docker nodejs puppeteer rules-nodejs

Last synced: 1 day ago
JSON representation

Can't run Bazel nodejs_image with Puppeteer

Awesome Lists containing this project

README

        

## Requirements

- Linux
- Yarn
- Node.js

## Setup

- `yarn install`

## Local Usage, works fine on Ubuntu

- `yarn bazelisk run //:server`
```

```

## Default nodejs_image, throws error

- `yarn bazelisk run //:image`

```
(node:44) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/app/server.runfiles/node_puppeteer/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
```

## Custom Ubuntu image, works fine

- `yarn bazelisk run //:custom_ubuntu`

```

```