Closed sonicjhon1 closed 1 year ago
Note: I'm using the prisma-kysely for generating the types from Prisma schema.
package.json
{
"name": "@sonicjhon1/kyselytest",
"version": "0.1.0",
"scripts": {
"dev": "ts-node index.ts",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"dotenv": "^16.0.3",
"kysely": "^0.24.2",
"kysely-surrealdb": "^0.7.0",
"prisma-kysely": "^1.4.0",
"socket.io": "4.6.1",
"surrealdb.js": "^0.7.2",
"whatsapp-web.js": "^1.19.5"
},
"devDependencies": {
"@types/ws": "8.5.4",
"prisma": "4.14.0",
"ts-node": "10.9.1",
"typescript": "5.0.4"
},
"optionalDependencies": {
"bufferutil": "4.0.7",
"utf-8-validate": "5.0.10"
}
}
Hey 👋
Can you provide a repository that reproduces this error?
Hi, it seems like some pnpm modules were not installed correctly. After doing a
pnpm install --force
This problem went away and instead the error is now the same error as #10 (same error as the minimal reproduction project linked in that issue). Sorry if I had wasted your time in this issue... Closing this issue as it was my fault.
You've not wasted my time, thank you!
I've just tried out using kysely, but for some reason I couldn't get it to work. The database I'm using is SurrealDB, here are the logs from Surreal:
The Node typescript code:
Node just errors out:
I have also double-checked that the database is running, I could even connect to the database via Surrealist without any problems.
Edit: #10 May be related.