© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
60 replies
static

Supabase gen types cannot read properties of undefined

What in the world would cause an error like this:
failed to retrieve generated types: {"message":"Cannot read properties of undefined (reading 'startsWith')","errorEventId":"2894dcfce0a045b5a0ad0935c543e9f8"}
Try rerunning the command with --debug to troubleshoot the error.
failed to retrieve generated types: {"message":"Cannot read properties of undefined (reading 'startsWith')","errorEventId":"2894dcfce0a045b5a0ad0935c543e9f8"}
Try rerunning the command with --debug to troubleshoot the error.


This is all I ran
> supabase gen types typescript --project-id ... --schema public,messaging,stripe,autosend > ../types/src/supabase/supabase.ts
> supabase gen types typescript --project-id ... --schema public,messaging,stripe,autosend > ../types/src/supabase/supabase.ts
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
Next page

Similar Threads

Supabase gen types
SupabaseSSupabase / help-and-questions
7mo ago
Supabase gen types fails
SupabaseSSupabase / help-and-questions
4y ago
Cannot read properties of undefined (reading 'user') sveltekit auth-helpers
SupabaseSSupabase / help-and-questions
4y ago
Conf Email redirect error: Uncaught TypeError: Cannot read properties of undefined (read 'includes')
SupabaseSSupabase / help-and-questions
7mo ago