Switched from bun to pnpm & now i have errors?

So i had all kind of issues with bun so i made th desicion to switch to pnpm. One of the scripts i'm written now has a type mismatches. Here is the error message: Argument of type 'SQLiteTableWithColumns<{ name: "users"; schema: undefined; columns: { id: SQLiteColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "SQLiteText"; data: string; driverParam: string; notNull: true; hasDefault: false; ... 5 more ...; generated: undefined; }, object>; firstName: SQLiteColumn<...>; l...' is not assignable to parameter of type 'SQLiteTable<TableConfig>'. So i switch from bun driver to better-sqlite3. So SQLiteTableWithColumns & SQLiteTable? Huh? Anyone know what i have have wrong here?
No description
1 Reply
ncage
ncage2mo ago
forget it. I figured it out. It had to do with types. I removed the bun-types from the tsconfig.json file but didn't add the better-sqlite3 types. That fixed the problem.
Want results from more Discord servers?
Add your server