Vivek Poddar
05/28/2022, 9:07 AM"@prisma/client did not initialize yet. Please run \"prisma generate\" and try to import it again.\nIn case this error is unexpected for you, please report it in <https://github.com/prisma/prisma/issues>",
I have checked and can see @prisma/client in the ./node_modules not sure what is missingDeogratius
05/28/2022, 9:14 AMprisma generate to have @prisma/client generated for that environment.Vivek Poddar
05/28/2022, 10:58 AM| npm i --production: > @prisma/client@3.14.0 postinstall /home/runner/work/guerdon/guerdon/server/node_modules/@prisma/client
| npm i --production: > node scripts/postinstall.js
| npm i --production: Prisma schema loaded from ../prisma/schema.prisma
| npm i --production: âś” Generated Prisma Client (3.14.0 | library) to ./../node_modules/@prisma/client in 64ms
| npm i --production: You can now start using Prisma Client in your code. Reference: <https://pris.ly/d/client>
| npm i --production:
| npm i --production: import { PrismaClient } from '@prisma/client'
| npm i --production: const prisma = new PrismaClient()
| npm i --production:Nurul
05/30/2022, 1:34 PMVivek Poddar
05/31/2022, 1:51 PMNurul
06/02/2022, 11:56 AMVivek Poddar
08/17/2022, 3:36 PMVivek Poddar
08/17/2022, 3:37 PM{
"errorType": "Error",
"errorMessage": "@prisma/client did not initialize yet. Please run \"prisma generate\" and try to import it again.\nIn case this error is unexpected for you, please report it in <https://github.com/prisma/prisma/issues>",
"stack": [
"Error: @prisma/client did not initialize yet. Please run \"prisma generate\" and try to import it again.",
"In case this error is unexpected for you, please report it in <https://github.com/prisma/prisma/issues>",
" at new PrismaClient (/var/task/node_modules/.prisma/client/index.js:3:11)",
" at Object.<anonymous> (/var/task/index.js:90:10)",
" at Module._compile (internal/modules/cjs/loader.js:1085:14)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)",
" at Module.load (internal/modules/cjs/loader.js:950:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:790:12)",
" at Module.require (internal/modules/cjs/loader.js:974:19)",
" at require (internal/modules/cjs/helpers.js:101:18)",
" at _tryRequireFile (/var/runtime/UserFunction.js:71:32)",
" at _tryRequire (/var/runtime/UserFunction.js:159:20)"
]
}Vivek Poddar
08/17/2022, 4:02 PM3.8.1 , I see that its still same but now it produces same errorNurul
08/18/2022, 7:02 AMVivek Poddar
08/18/2022, 5:47 PM3.8.1 only, I tried other versions including latest ones but it doesn’t work. Ideally I would like to use the latest version to get the latest features.Nurul
08/19/2022, 10:38 AMVivek Poddar
08/19/2022, 5:56 PMVivek Poddar
08/19/2022, 5:56 PMclass PrismaClient {
constructor() {
throw new Error(
`@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.
In case this error is unexpected for you, please report it in <https://github.com/prisma/prisma/issues>`,
)
}
}
module.exports = {
PrismaClient,
}