Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
5 replies
Ani

Imports and exports not working turborepo

Using create-t3-turbo I have declared Projects in the db schema:

// schema.ts
export const Projects = pgTable("projects", {
  name: varchar("name", { length: 128 }).notNull(),
  description: text("description"),
})

but when i try and import this in server package I keep getting the error:
// for the code: 
import { User, Projects } from "@amaxa/db/schema";
//the error
Module '"@amaxa/db/schema"' has no exported member 'Projects'.ts(2305)
Was this page helpful?