P
Prisma2mo ago
nezumi

Querying a SQLite database will just hang forever

Why ?
Solution:
Solved: I had to install a matching version of @prisma/client and prisma client. ```json { "name": "", "version": "1.0.0",...
Jump to solution
2 Replies
nezumi
nezumiOP2mo ago
const prisma = new PrismaClient();

console.log("good")
prisma.$queryRaw`SELECT * FROM User`.then(console.log); // The console.log here will never run, no promise rejection warnings either
const prisma = new PrismaClient();

console.log("good")
prisma.$queryRaw`SELECT * FROM User`.then(console.log); // The console.log here will never run, no promise rejection warnings either
Solution
nezumi
nezumi2mo ago
Solved: I had to install a matching version of @prisma/client and prisma client.
{
"name": "",
"version": "1.0.0",
"description": "",
"main": "server.ts",
"scripts": {
"compile": "npx tsc",
"start": "npm run compile && node ./dist/server.js"
},
"keywords": [],
"author": "",
"license": "0BSD",
"dependencies": {
"@prisma/client": "^5.22.0",
"express": "^4.21.1",
"node": "^22.11.0"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^15.14.9",
"prisma": "^5.22.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
}
}
{
"name": "",
"version": "1.0.0",
"description": "",
"main": "server.ts",
"scripts": {
"compile": "npx tsc",
"start": "npm run compile && node ./dist/server.js"
},
"keywords": [],
"author": "",
"license": "0BSD",
"dependencies": {
"@prisma/client": "^5.22.0",
"express": "^4.21.1",
"node": "^22.11.0"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/node": "^15.14.9",
"prisma": "^5.22.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
}
}
Want results from more Discord servers?
Add your server