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)
1 Reply
Ani
AniOP6mo ago
If anyone encounters issue I just gave up I pushed everyhting to a repo and completely reinstalled everything seemed to fix it
Want results from more Discord servers?
Add your server