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 repositorynode -v inside the v1.64.1 image prints v26, where it printed v24 in Octobervar origSlowBufEqual = SlowBuffer.prototype.equal;
Fix
- Check it's this: print the Node version in the same job, before your tests run. In the re-published image it is 26.
Ifnode -v npm ls jwa buffer-equal-constant-timenpm lsshows 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. - Fix the dependency (works on Node 24 and 26): update the two packages inside your lockfile, then commit the lockfile. No change to
package.jsonis needed, because jws 3.x accepts jwa 1.4.2 and jws 4.x accepts jwa 2.0.1.
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.npm update jws jwa npm ls jwa - Or go back to Node 24 without downgrading Playwright: point the image at v1.64.0 and keep
@playwright/testat 1.64.1. Both versions list the same browser builds inbrowsers.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:
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.# 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 - 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 - 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 - 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:
Then setconst buffer = require('buffer'); if (!buffer.SlowBuffer) buffer.SlowBuffer = buffer.Buffer;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.
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
- Upgrading Playwright does not bring Node 24 back. The 1.65.0 images (release of 5 November 2026) also have Node 26, and so will later ones.
- A version tag is not a fixed image. The same thing can happen to any
v1.x.y-jammytag, so pintag@sha256:digestin CI. Renovate and Dependabot can keep a pinned digest up to date. - The digests above are for the multi-platform image index, so they work on amd64 and arm64 runners.
- The Node 24 build of the v1.64.1 images is no longer reachable by tag. If an old runner or registry mirror still has it,
docker image inspectshows its digest, and you can pin that one. - SlowBuffer is one of several removals between Node 24 and 26. If your tests fail on Node 26 with a different error, the image pin in step 3 is the quick way back, and the Node 25 and 26 release notes list what was removed.
- The shim makes SlowBuffer an alias of Buffer. That is enough for buffer-equal-constant-time, which only reads and sets
prototype.equal. Code that callsnew SlowBuffer(size)needsBuffer.allocUnsafeSlow(size). - Microsoft answered issue #44073 on 12 November 2026: moving Node on a published tag was a mistake, and from now on the Node major stays the same within one Playwright minor version. The 1.64 images will not be republished, so the v1.64.1 tags stay on Node 26 and the steps above still apply (read on 14 November 2026).
Sources
- Playwright issue #44073: v1.64.1 Docker images re-published with Node 26 (12 November 2026)
- Playwright issue #43759: maintainer says the newest 1.64.1 images have Node 26; users report broken CI
- Playwright pull request #43829: Dockerfile moved to Node 26 on the release-1.64 branch (31 October 2026)
- Node.js deprecations: DEP0030 SlowBuffer, End-of-Life in v25.0.0
- Playwright Docker guide: image tags and "Build your own image"
- jwa on npm: versions
Other errors breaking soon
- GitHub Actions: "Event 'pull_request_target' is not allowed to trigger Actions workflows"
- Unable to display RD Web Access: Chrome 158 and Edge 159 turn off XSLT
- OpenAI Agent Builder shuts down on 30 November 2026: export your workflows, keep ChatKit, move prompt objects
- Claude Sonnet 4.5 retires on 30 November 2026: the 400 errors on Sonnet 5.5 and the fix
- Exchange Online POP and IMAP: TLS 1.0 and 1.1 refused, imap-legacy.office365.com gone
- Windows KB5127648: 802.1X Wi-Fi, wired and VPN sign-in fails (NTLMv1 SSO blocked)
- Firebase: Runtime Node.js 20 was decommissioned
- Firebase Hosting deploy fails: 403 "Permission denied to get service [firebasehosting.googleapis.com]"
- GitHub webhooks: "Failed to connect to host" after GitHub added 3 webhook IP ranges (29 October 2026)
- AWS CodeBuild: Unknown runtime version named '20' of nodejs
- Google Cloud Python: non-supported Python version (3.10)
- Azure OpenAI o1, o3, o3-mini and o4-mini retired on 19 November 2026: 410 Gone
- OpenAI: "The model โฆ has been deprecated" or "Model not found" after a shutdown
- Nextcloud desktop 35.0.1 won't start: "UNIQUE constraint failed: metadata.inode"
- Contact Form 7 6.2: "Composer detected issues in your platform" (PHP 8.3 required)
- Biome 2.6: biome check fails on README.md and YAML files after the upgrade
- pytest 9.2: xdist_group tests run on different workers (--dist loadgroup)
- WordPress 7.2 ignores data-wp-init--, data-wp-watch-- and data-wp-run-- directives
- Ubuntu 26.04 upgrade stops with "Unable to upgrade MySQL" (mysql_native_password accounts)
- Excel for Mac crashes when you refresh a pivot table (version 16.114)
- Outlook.com / Hotmail rejects your email: "Message lacks SPF/DKIM/DMARC Auth Records (AS9031519)"
- HubSpot Pipelines API V1 stops on 4 December 2026: move /crm-pipelines/v1/pipelines calls (and the n8n HubSpot node's stage lists)
- Typer 0.29: 'TyperOption' object has no attribute 'type', click_type and typer._types are gone
- Upload button does nothing in Office panes and small windows: "File chooser dialog was suppressed" (400x300)
- react-dropzone ignores dropped files in Chrome 157: SecurityError on FileSystemFileHandle.getFile()
- Playwright for Python 1.65 in Docker: driver/node: error while loading shared libraries: libatomic.so.1
- NumPy 2.4+: einsum with optimize=True returns wrong results for bool and small-integer arrays