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"),
})
// 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)
// for the code:
import { User, Projects } from "@amaxa/db/schema";
//the error
Module '"@amaxa/db/schema"' has no exported member 'Projects'.ts(2305)
0 Replies
No replies yetBe the first to reply to this messageJoin