Hello ! After updating supabase CLI I cannot run my edge function locally (they work fine in cloud) Here is the output when i try to reach a function :
2026-03-21T13:27:44.313715828Z Using supabase-edge-runtime-1.71.0 (compatible with Deno v2.1.4)
2026-03-21T13:27:48.588685482Z serving the request with supabase/functions/anon-actions
2026-03-21T13:27:49.000442558Z worker boot error: failed to bootstrap runtime: failed to create the graph: Module not found "https://esm.sh/openai@6.8.1/node_modules/undici-types/index.d.ts".
2026-03-21T13:27:49.000484397Z at https://esm.sh/openai@6.8.1/internal/types.d.mts:49:45
2026-03-21T13:27:49.000488154Z worker boot error: failed to bootstrap runtime: failed to create the graph: Module not found "https://esm.sh/openai@6.8.1/node_modules/undici-types/index.d.ts".
2026-03-21T13:27:49.000490749Z at https://esm.sh/openai@6.8.1/internal/types.d.mts:49:45
2026-03-21T13:27:49.004118305Z InvalidWorkerCreation: worker boot error: failed to bootstrap runtime: failed to create the graph: Module not found "https://esm.sh/openai@6.8.1/node_modules/undici-types/index.d.ts".
2026-03-21T13:27:49.004175583Z at https://esm.sh/openai@6.8.1/internal/types.d.mts:49:45
2026-03-21T13:27:49.004180843Z at async Function.create (ext:user_workers/user_workers.js:156:29)
2026-03-21T13:27:49.004185191Z at async Object.handler (file:///var/tmp/sb-compile-edge-runtime/root/index.ts:212:22)
2026-03-21T13:27:49.004188797Z at async mapped (ext:runtime/http.js:246:20) {
2026-03-21T13:27:49.004191773Z name: "InvalidWorkerCreation"
2026-03-21T13:27:49.004195961Z }
The user encounters a 'Module not found' error when trying to run an edge function locally after updating the Supabase CLI. The functions work fine in the cloud, but the local environment fails with a specific error related to a missing module from esm.sh.
Any idea what went wrong here ? Thanks for the help !