can anyone point me in the right direction to wher...
# orm-help
r
can anyone point me in the right direction to where i can ask questions about prisma? I am facing a weird typescript issue I can’t seem to resolve
b
Right here is fine
πŸ‘ 1
r
I added prisma to my project using the prisma commands, but when I run
tsc
to build the api since it is in typescript I am greeted with these weird errors
the application still works though but I am trying to resolve these compile errors
here is my
tsconfig.json
just in case
Copy code
{
  "compilerOptions": {
    "module": "commonjs",
    "esModuleInterop": true,
    "target": "es6",
    "outDir": "dist",
    "rootDir": ".",
    "sourceMap": true,
    "strict": false,
    "baseUrl": "./",
  },
  "exclude": ["./node_modules/*", "./node_modules", "./node_modules/.prisma/client/index.d.ts"]
}
e
What is your ts version ? πŸ™‚
b
TS has to be > 4.1 now I think
πŸ’― 1
r
ahh my ts version in
package.json
is
"typescript": "^3.3.3"
let me update it and verify

https://media.giphy.com/media/l2JhL1AzTxORUTDlC/giphy.gifβ–Ύ

πŸ˜„ 1
πŸ™Œ 1
that fixed it woooo
🦜 1
thank you
πŸ’― 2
one more issue came up now. I thought the types were already built into the npm module?
b
You have to generate the client library separate from the prisma npm package.
npx prisma generate
πŸ’― 1
r
ahh if i read the documentation i would have realized my mistake. thanks again