Edge Functions - Event Loop Error

This may be related to today's AWS outage, but I'm consistently seeing two issues when using the dashboard to edit edge functions:

1️⃣ Adding new files fails - if I add a new file and Deploy updates, a success message appears and the new file disappears.

2️⃣ All calls to my edge functions produce this error:

event loop error: Error: Cannot find module 'tslib'
Require stack:
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/index.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/SupabaseClient.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/index.js
- /var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/supabase-js/2.76.0/dist/main/index.js
    at Function.Module._resolveFilename (node:module:619:15)
    at Function.Module._load (node:module:497:27)
    at Module.require (node:module:681:19)
    at require (node:module:818:16)
    at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js:4:17)
    at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/@supabase/functions-js/2.76.0/dist/main/FunctionsClient.js:132:4)
    at Module._compile (node:module:745:34)
    at loadMaybeCjs (node:module:770:10)
    at Object.Module._extensions..js (node:module:755:12)
    at Module.load (node:module:662:32)
Screenshot_2025-10-20_at_17.23.13.png
Was this page helpful?