SupabaseS
Supabase2mo ago
Alex

[Local Edge function] OpenAI package: failed to bootstrap runtime: failed to create the graph

Hi Team,

With this import
import OpenAI from "jsr:@openai/openai"

I am hitting the following error when serving edge function locally. Deploy on remote environment does not have this issue. This import has been working for a very long time, out of sudden it start throwing error today.
worker boot error: failed to bootstrap runtime: failed to create the graph: Module not found "https://jsr.io/@openai/openai/6.9.0/node_modules/undici-types/index.d.ts".
2025-11-15T08:34:54.958530557Z     at https://jsr.io/@openai/openai/6.9.0/internal/types.ts:67:45
2025-11-15T08:34:54.958536698Z worker boot error: failed to bootstrap runtime: failed to create the graph: Module not found "https://jsr.io/@openai/openai/6.9.0/node_modules/undici-types/index.d.ts".
2025-11-15T08:34:54.958540155Z     at https://jsr.io/@openai/openai/6.9.0/internal/types.ts:67:45
2025-11-15T08:34:54.960970782Z InvalidWorkerCreation: worker boot error: failed to bootstrap runtime: failed to create the graph: Module not found "https://jsr.io/@openai/openai/6.9.0/node_modules/undici-types/index.d.ts".
2025-11-15T08:34:54.961025005Z     at https://jsr.io/@openai/openai/6.9.0/internal/types.ts:67:45
2025-11-15T08:34:54.961030305Z     at async Function.create (ext:user_workers/user_workers.js:155:29)
2025-11-15T08:34:54.961032870Z     at async Object.handler (file:///var/tmp/sb-compile-edge-runtime/root/index.ts:158:22)
2025-11-15T08:34:54.961034984Z     at async mapped (ext:runtime/http.js:231:18) {
2025-11-15T08:34:54.961036767Z   name: "InvalidWorkerCreation"
2025-11-15T08:34:54.961038951Z }

supabase-edge-runtime-1.69.23
npx supabase --version --> 2.58.5

Spent lots of time couldn't figure out why and how to solve this. Any idea/suggestion is highly appreciated.

Thanks so much.

Alex
Was this page helpful?