jean
jean
DTDrizzle Team
Created by jean on 5/28/2023 in #help
Error when using Drizzle (Non-abstract class 'PgSelect<TTableName, TSelection, TSelectMode, [...])
I suppressed the error by adding: "skipLibCheck": true to my tsconfig.json
5 replies
DTDrizzle Team
Created by jean on 5/28/2023 in #help
Error when using Drizzle (Non-abstract class 'PgSelect<TTableName, TSelection, TSelectMode, [...])
And my tsconfig.json:
{
"compilerOptions": {
"rootDirs": ["src"],
"outDir": "dist",
"lib": ["es2020"],
"target": "es2020",
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"types": ["node"]
}
}
{
"compilerOptions": {
"rootDirs": ["src"],
"outDir": "dist",
"lib": ["es2020"],
"target": "es2020",
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"types": ["node"]
}
}
Not sure what I'm doing wrong here.
5 replies
DTDrizzle Team
Created by jean on 5/28/2023 in #help
Error when using Drizzle (Non-abstract class 'PgSelect<TTableName, TSelection, TSelectMode, [...])
Here's my package.json:
{
[... removed]
"main": "index.js",
"type": "module",
"scripts": {
"compile": "tsc",
"start": "npm run compile && node ./dist/index.js"
},
"dependencies": {
"@apollo/server": "^4.7.1",
"drizzle-orm": "^0.26.1",
"graphql": "^16.6.0",
"postgres": "^3.3.4"
},
"devDependencies": {
"@types/node": "^20.2.5",
"drizzle-kit": "^0.18.1",
"typescript": "^5.0.4"
}
}
{
[... removed]
"main": "index.js",
"type": "module",
"scripts": {
"compile": "tsc",
"start": "npm run compile && node ./dist/index.js"
},
"dependencies": {
"@apollo/server": "^4.7.1",
"drizzle-orm": "^0.26.1",
"graphql": "^16.6.0",
"postgres": "^3.3.4"
},
"devDependencies": {
"@types/node": "^20.2.5",
"drizzle-kit": "^0.18.1",
"typescript": "^5.0.4"
}
}
5 replies