tsc fails to build due to errors

When I run tsc to compile the project to javascript, I am getting the following error:
Found 4 errors in 2 files.

Errors Files
2 node_modules/.pnpm/drizzle-orm@0.27.2_postgres@3.3.5/node_modules/drizzle-orm/db.d-b9835153.d.ts:593
2 node_modules/.pnpm/drizzle-orm@0.27.2_postgres@3.3.5/node_modules/drizzle-orm/pg-core/index.d.ts:336
Found 4 errors in 2 files.

Errors Files
2 node_modules/.pnpm/drizzle-orm@0.27.2_postgres@3.3.5/node_modules/drizzle-orm/db.d-b9835153.d.ts:593
2 node_modules/.pnpm/drizzle-orm@0.27.2_postgres@3.3.5/node_modules/drizzle-orm/pg-core/index.d.ts:336
Weird thing is, it actually compiles successfully, and I can start the app. Can I just ignore the error?
2 Replies
tea bone
tea boneOP3y ago
I just added skipLibCheck option and it works
pandareaper
pandareaper3y ago
Also interested in this one. Would love to see a solution that doesn't involve skipLibCheck

Did you find this page helpful?