hahn
hahn
DTDrizzle Team
Created by hahn on 10/20/2023 in #help
tsc command fails when using sqlite
Hey, just started using the library, and I'm having issues running the tsc command. Here's the output (shortened a lot though):
node_modules/drizzle-orm/mysql-core/db.d.ts:1:38 - error TS2307: Cannot find module 'mysql2/promise' or its corresponding type declarations.

1 import type { ResultSetHeader } from 'mysql2/promise';
~~~~~~~~~~~~~~~~
node_modules/drizzle-orm/mysql-core/db.d.ts:1:38 - error TS2307: Cannot find module 'mysql2/promise' or its corresponding type declarations.

1 import type { ResultSetHeader } from 'mysql2/promise';
~~~~~~~~~~~~~~~~
Even though I'm only using sqlite, it seems that typescript is checking for all of the codebase, including mysql and pg types, which break since I don't have the packages installed.
9 replies