From bf465e0a7303d58b3cfc56dae9844fefef00c9db Mon Sep 17 00:00:00 2001 From: Pierre Le Fevre Date: Sat, 14 Mar 2026 18:41:02 +0100 Subject: [PATCH] Fix Uint8Array type error breaking Docker build TypeScript 5.7+ makes Uint8Array generic over its buffer type. Pass .buffer as ArrayBuffer to pushManager.subscribe() to fix the type incompatibility with BufferSource. Co-Authored-By: Claude Opus 4.6 (1M context) --- web/src/hooks/usePushNotifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/hooks/usePushNotifications.ts b/web/src/hooks/usePushNotifications.ts index 277b730..28c5e47 100644 --- a/web/src/hooks/usePushNotifications.ts +++ b/web/src/hooks/usePushNotifications.ts @@ -68,7 +68,7 @@ export function usePushNotifications() { const registration = await navigator.serviceWorker.ready; const subscription = await registration.pushManager.subscribe({ userVisibleOnly: true, - applicationServerKey, + applicationServerKey: applicationServerKey.buffer as ArrayBuffer, }); const json = subscription.toJSON(); -- 2.51.2