Playwright v1.64.1 Docker image now has Node 26: "Cannot read properties of undefined (reading 'prototype')"

TypeError: Cannot read properties of undefined (reading 'prototype')
    at Object.<anonymous> (node_modules/buffer-equal-constant-time/index.js:37:35)

Short answer: Microsoft rebuilt the Playwright v1.64.1 Docker tags on 1 November 2026 with Node.js 26 in place of Node 24. Node 25 removed buffer.SlowBuffer, so old copies of jwa (1.4.1 and 2.0.0, under jsonwebtoken) crash when they load. Run npm update jws jwa, or move the image tag to v1.64.0, which still has Node 24 and the same browser builds.

No time to dig in? I pin the image or update the dependencies, and send you a pull request within 48 hours: $49, card, no account. Still failing, full refund. The free steps are below.

Checked on 12 November 2026 against the sources below.

Why it happens

A Docker tag is a pointer, and this one was moved. Playwright 1.64.1 was released on 14 October 2026 with Node 24 in its images. On 31 October a pull request that changes the Dockerfile to Node 26 was merged into the release-1.64 branch, and the v1.64.1-jammy and v1.64.1-noble tags were built again the next day. A Playwright maintainer wrote on 1 November that the newest 1.64.1 images should have Node 26 now. A pipeline that pins both the npm package and the image to 1.64.1 therefore got a new Node.js major version without any commit. Node 25 removed the long-deprecated SlowBuffer class (deprecation DEP0030, End-of-Life). The package buffer-equal-constant-time 1.0.1 reads SlowBuffer.prototype in its first lines. jwa 1.4.1 and 2.0.0 load that package at start-up; jwa 1.4.2 and 2.0.1 load it only on Node versions that have no crypto.timingSafeEqual, so never on a current Node. jwa sits under jws, jsonwebtoken and, through them, libraries such as @azure/msal-node. In the week of 4 to 10 November 2026, jwa 1.4.1 and 2.0.0 together still had about 15 million npm downloads, mostly from old lockfiles. How we checked (12 November 2026): we read the image configuration from Microsoft's registry. v1.64.1-jammy was created on 1 November 2026 at 17:51 UTC and v1.64.1-noble at 17:56 UTC, both with NODE_VERSION=26 in the build history; v1.64.0-jammy and v1.64.0-noble were created on 8 October with NODE_VERSION=24. Node's own source has no SlowBuffer in lib/buffer.js on the v25.x and v26.x branches. We did not run the container. We reproduced the crash on Node 24 by deleting buffer.SlowBuffer before the test, which is the state Node 26 starts in: jwa 1.4.1 and 2.0.0 failed with the error above, 1.4.2 and 2.0.1 signed and verified a token. On a project locked to jws 3.2.2 and jwa 1.4.1, npm update jws jwa moved it to 3.2.3 and 1.4.2 and the error was gone. Playwright issue #44073 (12 November) asks Microsoft to put Node 24 back on the tag; two other users reported broken CI on 2 November.

You may also see

CI in mcr.microsoft.com/playwright:v1.64.1-jammy or v1.64.1-noble started failing in November with no change in the repository
node -v inside the v1.64.1 image prints v26, where it printed v24 in October
var origSlowBufEqual = SlowBuffer.prototype.equal;

Fix

  1. Check it's this: print the Node version in the same job, before your tests run. In the re-published image it is 26.
    node -v
    npm ls jwa buffer-equal-constant-time
    If npm ls shows jwa 1.4.1 or 2.0.0, you have the crash on this page. A different error on Node 26 has the same cause (the tag moved); use step 3 for that.
  2. Fix the dependency (works on Node 24 and 26): update the two packages inside your lockfile, then commit the lockfile. No change to package.json is needed, because jws 3.x accepts jwa 1.4.2 and jws 4.x accepts jwa 2.0.1.
    npm update jws jwa
    npm ls jwa
    You want jwa 1.4.2 (with jws 3.2.3) or jwa 2.0.1 (with jws 4.0.1). We tested this with npm 11. With pnpm or Yarn, update the same two packages in the lockfile.
  3. Or go back to Node 24 without downgrading Playwright: point the image at v1.64.0 and keep @playwright/test at 1.64.1. Both versions list the same browser builds in browsers.json (Chromium 1248, Firefox 1555, WebKit 2370), so the 1.64.0 image holds the browsers that 1.64.1 looks for. Pin the digest as well, so the tag can't move under you again:
    # Ubuntu 22.04 (jammy), Node 24, created 8 October 2026
    mcr.microsoft.com/playwright:v1.64.0-jammy@sha256:c064e7f355d2dda32f669801a1b09e86a1e9252395c844d2cfbbe5c44acb9b79
    
    # Ubuntu 24.04 (noble), Node 24, created 8 October 2026
    mcr.microsoft.com/playwright:v1.64.0-noble@sha256:06a9939e57531807f8d5fd76ce44b53165ffb7d7501d87ab10e285c20b1e971f
    We read both digests and the browser lists on 12 November 2026. We did not run a test suite in this image, so run yours once before you rely on it.
  4. In GitHub Actions the line looks like this (GitLab CI and Azure Pipelines take the same image string):
    jobs:
      e2e:
        runs-on: ubuntu-latest
        container:
          image: mcr.microsoft.com/playwright:v1.64.0-jammy@sha256:c064e7f355d2dda32f669801a1b09e86a1e9252395c844d2cfbbe5c44acb9b79
  5. Need 1.64.1 or later on Node 24 for longer: build your own image. Playwright's Docker guide gives this pattern; we changed only the Node version and did not build it ourselves.
    FROM node:24-bookworm
    RUN npx -y playwright@1.64.1 install --with-deps
  6. Can't change the lockfile today (a vendored or third-party tool brings the old jwa): preload a two-line file that puts the missing name back before anything else loads. Save it as slowbuffer-shim.cjs:
    const buffer = require('buffer');
    if (!buffer.SlowBuffer) buffer.SlowBuffer = buffer.Buffer;
    Then set NODE_OPTIONS="--require ./slowbuffer-shim.cjs" for the job. In our test on Node 24 with SlowBuffer deleted, jsonwebtoken signed and verified tokens with this file loaded. Treat it as a stopgap and remove it once the lockfile is updated.
Build still red, or no time to dig in? I fix it for you: send a GitHub invite or a zip, and you get a tested pull request that makes the build pass on the new version. No passwords or production keys needed.

Get it fixed: $49

Pay by card, no account needed. Pull request within 48 hours; build still failing, full refund.

How it works: 1. Pay on Gumroad; the checkout asks for the repository. 2. Invite my GitHub user, Donrulezz, to that repository only (private is fine), or email a zip with the failing log to hello@deadlinefix.com. 3. You get a pull request with a list of every change; you review, merge and deploy. I never ask for cloud passwords or production keys.

Who does the work: me, Ashish, the owner of this site, based in India. My public code and tools are on GitHub: github.com/Donrulezz.

Watch out

Sources

Did this fix it?

What's still not working?

Describe what happens and paste any error message. We read every report and fix the page.

Other errors breaking soon

All "breaking soon" fixes