dijonmusters / build-a-realtime-chat-app-with-remix-and-supabase

This repo accompanies a free egghead course demonstrating how to build a realtime chat app with Remix and Supabase
https://egghead.io/courses/build-a-realtime-chat-app-with-remix-and-supabase-d36e2618
26 stars 5 forks source link

Access token missing when gen'ing ts types #1

Open marqpdx opened 1 year ago

marqpdx commented 1 year ago

In Section 4, i got an error when running supabase gen types typescript --project-id ...

Error: Access token not provided. Supply an access token by running supabase login or setting the SUPABASE_ACCESS_TOKEN environment variable.

Not sure if i missed a step. An running terminal outside of VS Code, but that shouldn't matter. I just copied the types from GH.

NSDrowned commented 1 year ago

Ran into the same problem. You need to generate an access token here: https://app.supabase.com/account/tokens, copy it and paste it when asked when running supabase login in the supabase cli (which you need to install first: https://supabase.com/docs/guides/resources/supabase-cli)