Playwright · infra · fg-0070

Playwright fails with 'libglib-2.0.so.0: cannot open shared object file' on a Nixpacks build

libglib-2.0.so.0: cannot open shared object file

This trap has not been confirmed recently and may be out of date.

Verified 2026-06-22 · Confirmed by 0 builders · Trust 50/100

Cause

playwright install --with-deps needs apt-get, which the Nixpacks build sandbox does not offer, so the fallback installed the browser without its system libraries.

Fix

Build from the official Playwright Docker image, keeping its tag in step with the playwright package version.

Apply

FROM mcr.microsoft.com/playwright:v1.60.0-jammy

Affects: Playwright 1.60.0 on Railway Nixpacks, June 2026

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp