gen types - 'error during connection'

Trying to follow this video by supabase for generating typescript types for my database (https://youtu.be/7CqlTU9aOR4). but currently getting an error of:
Connecting to postgresql://postgres:[rest of uri]
Error: error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/public.ecr.aws/supabase/postgres-meta:v0.54.1/json": open //./pipe/docker_engine: The system cannot find the file specified.

command i used:
npx supabase gen types typescript --db-url postgresql://postgres:[rest of uri] > ./src/schema.ts --debug

Things i tried:
  • installing supabase as a global dependency
  • Restarting project
  • using --debug but it gave me the same output
YouTubeSupabase
TypeScript has become a huge part of developing for the web today and in this video, we will explore how to make the most of TypeScript while working on your Supabase project. A prerequisites for using the supabase CLI in your local environment when using the --local or the --db-url flag is to have Docker installed.

Alternatively if you don't w...
Was this page helpful?