File is not a module - Typescript
I'm setting up typescript in a Nuxt project for the first time.
I have generated types from my supabase DB according to the docs
https://supabase.com/docs/guides/api/rest/generating-types
But when I do
import { Database } from '~/types/supabase';
I get this error:
"File '/types/supabase.ts' is not a module."
import type { Database } from '~/types/supabase';
does nothing.
Why is this happening?0 Replies