supabase gen types - No such container [docker]

I'm attempting to generate typescript types but it seems like the docker container needed for this keeps crashing, here's what is happening:

  • pnpm supabase gen types typescript --local --schema public > ./types/supabase.ts
Output:
  • Error: Error: No such container: 510f416b1a2b5aeeef0a445923472d2b2a8fb5a5814a37c44dd0107b03bacf2e
I debugged this by watching what is happening, it seems like that the container that gen types typescript starts up (postgres-meta) is killed and deleted within mere seconds.

I used watch docker ps, ran the typegen command, quickly made a screenshot once it appeared, and it disappeared after a second. That exact same container that I made a screenshot off, is the container is displayed in the gen types typescript command error.

I can't seem to get the logs of it after either, since I get, again No such container if I try docker logs 510f416b1a2b5aeeef0a445923472d2b2a8fb5a5814a37c44dd0107b03bacf2e.

See screenshot in comments.
Was this page helpful?