© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
2 replies
Ruchi

Generated types have unstable field order

It looks like
supabase gen types typescript
supabase gen types typescript
does not produce deterministic output.
The order of object properties in
Args
Args
and
Returns
Returns
is not stable between local and CI runs, even when the schema is the same.

As a result, diffs are detected in CI and the job fails.
I followed this guide for generating types in CI:
https://supabase.com/docs/guides/deployment/ci/generating-types

Example:
- Args: { first_name; last_name; email }
+ Args: { first_name; email; last_name }

Expected: the generated types should always have the same order for a given schema, regardless of environment.

Is there a recommended solution or workaround for this?
Generate types using GitHub Actions | Supabase Docs
End-to-end type safety across client, server, and database.
Generate types using GitHub Actions | Supabase Docs
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

Generated Types for Dart
SupabaseSSupabase / help-and-questions
13mo ago
Can you change supabase generated Json types?
SupabaseSSupabase / help-and-questions
4y ago
generated typescript types do not match --local with same schema
SupabaseSSupabase / help-and-questions
3y ago
VSCode IntelliSense not working for Supabase-generated types despite correct setup
SupabaseSSupabase / help-and-questions
4w ago