EarHolesMcGee
EarHolesMcGee
DTDrizzle Team
Created by EarHolesMcGee on 6/11/2024 in #help
Cannot use 'in' operator to search for 'enumValues' in undefined
This is suddenly issue - I haven't changed anything in my schema, I just updated to the newest version of drizzle/drizzle-kit
export const user = pgTable('user', {
id: serial('id').primaryKey(),
userType: userTypeEnum('userType').notNull().default('buyer'),
});
export const user = pgTable('user', {
id: serial('id').primaryKey(),
userType: userTypeEnum('userType').notNull().default('buyer'),
});
Example in my schema package json
"drizzle-kit": "^0.22.0",
"drizzle-orm": "^0.31.0",
"drizzle-zod": "^0.5.1",
"drizzle-kit": "^0.22.0",
"drizzle-orm": "^0.31.0",
"drizzle-zod": "^0.5.1",
I get this error anytime I try inserting new values in the DB or if I try to run a generate Any ideas???
1 replies