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](https://cdn.answeroverflow.com/1264434209804517376/image.png)
1 Reply
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.