import { Database } from './database.types' - Build a User Management App with Next.js Tutorial
Hi I am following the tutorial on how to build a user management app and and using TS. I followed this part of the tutorial on how to create types, https://supabase.com/docs/guides/api/rest/generating-types and now have a types/supabase.ts file, but the import is now working even if I change it to import { Database } from './types/supabase.ts';
Attached are some screenshots thank you.
Cannot find module './database.types' or its corresponding type declarations.
Generating TypeScript Types | Supabase Docs
How to generate types for your API and Supabase libraries.


3 Replies