Skip to content

Supabase gen types {"message":"Cannot read properties of undefined (reading 'startsWith')" #1003

@Xyeut

Description

@Xyeut

Describe the bug
I'm noticing an odd issue with supabase gen types typescript --project-id pjlbzgujomiba***** --schema public,messaging,stripe,autosend > ../types/src/supabase/supabase.ts
Whenever I run this, I'm encountered with this error
Image

It seems to only affect my project, this was working fine the night before. However, I pushed some migrations and the next morning I wasn't able to generate any types. If I create a test project in supabase and try to generate types, I'm able to do so without any issues.

I'm also not able to generate types through the dashboard.

To Reproduce
Steps to reproduce the behavior:

  1. Try to generate types for the api.athleticscholar.net project
  2. Encounter error

Expected behavior
A clear and concise description of what you expected to happen.
I expect generated types to appear

Screenshots

Image

System information
Rerun the failing command with --create-ticket flag.

  • Ticket ID: 8bee073e313c4f83a69a351b772e3f37
  • Version of OS: Mac Tahoe v26.0.1
  • Version of CLI: v2.51.0
  • Versions of services:
    SERVICE IMAGE | LOCAL | LINKED
    ------------------------|------------------------|------------
    supabase/postgres | 17.6.1.021 | 17.6.1.021
    supabase/gotrue | v2.180.0 | v2.180.0
    postgrest/postgrest | v13.0.7 | -
    supabase/realtime | v2.53.2 | -
    supabase/storage-api | v1.28.1 | -
    supabase/edge-runtime | v1.68.3 | -
    supabase/studio | 2025.10.09-sha-433e578 | -
    supabase/postgres-meta | v0.91.7 | -
    supabase/logflare | 1.23.0 | -
    supabase/supavisor | 2.7.3 | -

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions