© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
S
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
.
Supabase
Join
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Generated Types for Dart
S
Supabase / help-and-questions
13mo ago
Can you change supabase generated Json types?
S
Supabase / help-and-questions
4y ago
generated typescript types do not match --local with same schema
S
Supabase / help-and-questions
3y ago
VSCode IntelliSense not working for Supabase-generated types despite correct setup
S
Supabase / help-and-questions
4w ago