Skip to content

Patch imagemagick-stream for Node 24 compatibility - #70

Merged
mchapman merged 1 commit into
mainfrom
fix/sentry-error-cleanup
Sep 2, 2026
Merged

Patch imagemagick-stream for Node 24 compatibility#70
mchapman merged 1 commit into
mainfrom
fix/sentry-error-cleanup

Conversation

@mchapman

@mchapman mchapman commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

  • imagemagick-stream@4.1.1's error handler calls util.isError(), which was removed from Node.js core. On Node 24 this throws TypeError: isError is not a function every time ImageMagick emits any error output — masking the real underlying failure and crashing instead of emitting a normal error event on the stream.
  • The package has been unmaintained since 2018, so patched it in place via patch-package (already used in this repo for liftup).
  • Companion fix in plait (branch fix/sentry-error-cleanup) and plaitapp-services (also loads this package directly).

Fixes plait PLAIT-BACKEND-947.

Test plan

  • npm install / postinstall applies the patch cleanly
  • Trigger an ImageMagick failure during upload and confirm a proper Error surfaces instead of the isError crash

🤖 Generated with Claude Code

imagemagick-stream@4.1.1's error handler calls util.isError(), which
was removed from Node.js core. On Node 24 this throws
"TypeError: isError is not a function" every time ImageMagick emits
any error output, masking the real underlying failure and crashing
instead of emitting a normal 'error' event on the stream. The package
has been unmaintained since 2018, so patch it in place via
patch-package (already used in this repo for liftup).

Fixes plait PLAIT-BACKEND-947
@mchapman
mchapman merged commit cf2732e into main Sep 2, 2026
3 checks passed
@mchapman
mchapman deleted the fix/sentry-error-cleanup branch September 2, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant