ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข4y agoโ€ข
33 replies
Charles de Dreuille

Can't generate types from CLI

๐Ÿคทother
I tried the new CLI to generate types from a URL wit this command
supabase gen types typescript --db-url https://xxx.supabase.co
supabase gen types typescript --db-url https://xxx.supabase.co


and this is the error I received:
supabase gen types typescript --db-url https://xxx.supabase.co
Error: node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".] {
  code: 'ERR_UNHANDLED_REJECTION'
}
supabase gen types typescript --db-url https://xxx.supabase.co
Error: node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".] {
  code: 'ERR_UNHANDLED_REJECTION'
}


Did I do something wrong?
FYI, Docker is running and if I run supabase start it works locally as expected.

Thanks
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

Generate types
SupabaseSSupabase / help-and-questions
7mo ago
Help generate types with the CLI from remote instance, access errors
SupabaseSSupabase / help-and-questions
3h ago
Using TS - struggling to generate types with CLI
SupabaseSSupabase / help-and-questions
4y ago
Generate Types From the Cloud V2
SupabaseSSupabase / help-and-questions
4y ago