© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
87 replies
Lara

Issue with Deno Edge Functions: InvalidWorkerCreation when importing external modules

edge functions
Description:
I'm encountering an
InvalidWorkerCreation
InvalidWorkerCreation
error when trying to use Deno Edge Functions with external module imports. The error occurs specifically when importing files from outside the
/supabase/functions
/supabase/functions
directory.

Error Message:
Code : 503
{"code":"BOOT_ERROR","message":"Worker failed to boot (please check logs)"}
Code : 503
{"code":"BOOT_ERROR","message":"Worker failed to boot (please check logs)"}


Environment:
- OS: macOS
- Framework: Deno
- Supabase CLI Version: 2.65.5
- @supabase/supabase-js: ^2.87.0
- Deno Version: 256

Steps to Reproduce:
1. Create a Supabase Edge Function that imports a module from outside the
/supabase/functions
/supabase/functions
directory.
2. Attempt to serve the function locally using
supabase functions serve
supabase functions serve
.

Expected Behavior:
The function should start without any issues, allowing imports from outside the
/supabase/functions
/supabase/functions
directory.

Additional Context:
I've tried updating the deno.json configuration to use both npm and direct Deno imports, but the issue persists. The function works fine when run directly with
deno run
deno run
.

Relevant Files:
- deno.json configuration
- Any relevant code snippets showing the import statements

Question:
How can I properly configure my Supabase Edge Function to allow imports from outside the
/supabase/functions
/supabase/functions
directory? Are there any specific Deno permissions or configurations I need to set?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Next page

Similar Threads

Node modules with Deno in edge functions
SupabaseSSupabase / help-and-questions
4y ago
Importing local code into Deno + Edge Functions
SupabaseSSupabase / help-and-questions
4y ago
Edge functions + Deno Fresh?
SupabaseSSupabase / help-and-questions
4y ago
Edge functions issue
SupabaseSSupabase / help-and-questions
4mo ago