David
08/05/2021, 11:36 AM@prisma
, the runtime folder is exist, but not the findSync
Ryan
08/05/2021, 11:50 AMDavid
08/05/2021, 11:53 AMnode_modules/.prisma/client/index.js:55
and I check its imported from @prisma/client/runtime
.
But when I go there, the function isn't exist.Ryan
08/05/2021, 11:55 AMDavid
08/05/2021, 12:12 PM"dependencies": {
"@prisma/client": "2.21.0",
.....
},
"devDependencies": {
"prisma": "^2.21.0",
....
}
my command to build is:
_"build"_: "yarn -s run clean && yarn -s run generate && tsc"
while:
"clean": "rm -rf node_modules"
and "generate": "prisma generate"
Ryan
08/05/2021, 12:14 PMDavid
08/05/2021, 12:18 PMRyan
08/05/2021, 12:20 PMnpm ci
and check if it works again?David
08/05/2021, 12:24 PMpackage-lock.json
which is make it not working with npm ci
. Is it okay for me to use yarn install --frozen-lockfile
?Ryan
08/05/2021, 12:25 PMnode_modules
then installing yarn --frozen-lockfile
.David
08/05/2021, 12:27 PMrm -rf node_modules/ && yarn install --frozen-lockfile
ok im trying nowDavid
08/05/2021, 12:28 PMDavid
08/05/2021, 12:41 PMRyan
08/05/2021, 12:44 PMDavid
08/05/2021, 12:52 PMRyan
08/05/2021, 12:55 PMDavid
08/05/2021, 12:55 PMDavid
08/05/2021, 12:56 PMRyan
08/05/2021, 12:56 PMyarn.lock
was changed or not.David
08/05/2021, 1:00 PMyarn.lock
fileRyan
08/05/2021, 1:24 PMRyan
08/05/2021, 1:24 PMDavid
08/05/2021, 1:54 PMjanpio
npx prisma -v
output look like?David
08/05/2021, 2:17 PMprisma : 2.28.0
@prisma/client : 2.23.0
Current platform : debian-openssl-1.1.x
Query Engine : query-engine 89facabd0366f63911d089156a7a70125bfbcd27 (at ../../common/temp/node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x)
Migration Engine : migration-engine-cli 89facabd0366f63911d089156a7a70125bfbcd27 (at ../../common/temp/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core 89facabd0366f63911d089156a7a70125bfbcd27 (at ../../common/temp/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary : prisma-fmt 89facabd0366f63911d089156a7a70125bfbcd27 (at ../../common/temp/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash : 89facabd0366f63911d089156a7a70125bfbcd27
Studio : 0.417.0
Preview Features : orderByAggregateGroup
wait, how can the client and prisma itself be different when in the package.json
it's have same version.David
08/06/2021, 9:21 AMprisma
and @prisma/client
library is have different version.
and the version mismatch create the issue.
no wonder it's working fine and then after that it's become broken.
the script is got into my development branch because one of our local config to always merge main
branch into our in dev branch.Ryan
08/06/2021, 9:24 AM