© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
1 reply
House

Deploying Edge Function shared types and Editor errors?

Hey folks, I have a a few questions redeploying local edge functions. My folder structure is as this guide: https://supabase.com/docs/guides/functions/development-tips#organizing-your-edge-functions

1. import { createClient } from 'npm:@supabase/supabase-js@2'; - gives the error "Cannot find module 'npm:@supabase/supabase-js@2'. Did you mean to set the 'moduleResolution' option to 'nodenext'" on Supabase.com/dashboard
2. I have a types.ts in my _Shared folder locally but I can't add it to Supabase.com/dashboard via the add file. After I add a new file and use the "../_shared/type.ts" as name it just disappears after.
3. I also get "Cannot find module '_shared/utils.ts'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?(2792)" for utils.ts.

See screenshot below.
image.png
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Edge function shared code
SupabaseSSupabase / help-and-questions
3mo ago
Deploying Edge Functions Shared Folder
SupabaseSSupabase / help-and-questions
8mo ago
Edge Function not deploying
SupabaseSSupabase / help-and-questions
3y ago
Error on deploying edge function:
SupabaseSSupabase / help-and-questions
4mo ago