Bernd Münzer
06/29/2021, 12:00 PMjanpio
janpio
janpio
Bernd Münzer
06/29/2021, 1:44 PMBernd Münzer
06/29/2021, 3:33 PMBernd Münzer
06/29/2021, 3:33 PM"\nInvalid `prisma.user.findMany()` invocation:\n\n\n spawn C:\\snapshot\\myProject\\node_modules\\.prisma\\client\\query-engine-windows.exe ENOENT"
now:
"\nInvalid `prisma.user.findMany()` invocation:\n\n\n Query engine binary for current platform \"windows\" could not be found.\nThis probably happens, because you built Prisma Client on a different platform.\n(Prisma Client looked in \"C:\\\\snapshot\\\\myProject\\\\node_modules\\\\prisma\\\\node_modules\\\\@prisma\\\\engines\\\\query-engine-windows.exe\")\n\nSearched Locations:\n\n\n\n\nTo solve this problem, add the platform \"undefined\" to the \"binaryTargets\" attribute in the \"generator\" block in the \"schema.prisma\" file:\ngenerator client {\n provider = \"prisma-client-js\"\n binaryTargets = [\"native\", \"windows\"]\n}\n\nThen run \"prisma generate\" for your changes to take effect.\nRead more about deploying Prisma Client: <https://pris.ly/d/client-generator>"
Bernd Münzer
06/29/2021, 3:34 PMadd the platform \"undefined\"
seems to be the problem.... but I have no idea what to do about itjanpio
janpio
Bernd Münzer
06/30/2021, 8:00 AMjanpio
pkg
binary is mostly meant for the Prisma CLI, not the Client which you seem to try to use here.janpio
janpio
janpio
Bernd Münzer
06/30/2021, 8:20 AMBernd Münzer
07/01/2021, 2:37 PM