© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
3 replies
ApexCoder

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.
image.png
image.png
Generating TypeScript Types | Supabase Docs
How to generate types for your API and Supabase libraries.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cannot read from database in next.js page
SupabaseSSupabase / help-and-questions
4y ago
Create Next App Next 14 Build Error
SupabaseSSupabase / help-and-questions
3y ago
Stuck reading Data from the database and showing it in a page with Next.js (Next Auth Adapter)
SupabaseSSupabase / help-and-questions
4y ago
Get Typescript Types from Management API with Legacy Keys Disabled?
SupabaseSSupabase / help-and-questions
2mo ago