Vladi Stevanovic
Shivansh Srivastava
10/13/2021, 6:55 PMSai Krishna
10/16/2021, 8:41 AMVladi Stevanovic
Vladi Stevanovic
Paulo Spiguel
10/18/2021, 12:24 PMnode:29) UnhandledPromiseRejectionWarning: Error: Query engine library for current platform "linux-musl" could not be found.
app-api | You incorrectly pinned it to linux-musl
app-api |
app-api | This probably happens, because you built Prisma Client on a different platform.
app-api | (Prisma Client looked in "/usr/app/node_modules/@prisma/client/runtime/libquery_engine-linux-musl.so.node")
app-api |
app-api | Searched Locations:
app-api |
app-api | /usr/app/node_modules/.prisma/client
app-api | /home/paulospiguel/www/dkpa/doggie/api/node_modules/@prisma/client
app-api | /usr/app/node_modules/@prisma/client
app-api | /usr/app/node_modules/.prisma/client
app-api | /usr/app/prisma
app-api | /tmp/prisma-engines
app-api | /usr/app/node_modules/.prisma/client
app-api |
app-api |
app-api | To solve this problem, add the platform "linux-musl" to the "binaryTargets" attribute in the "generator" block in the "schema.prisma" file:
app-api | generator client {
app-api | provider = "prisma-client-js"
app-api | binaryTargets = ["native"]
app-api | }
app-api |
app-api | Then run "prisma generate" for your changes to take effect
``````Tigran Tokmajyan
10/24/2021, 6:34 PMWARNING in ./libs/prisma/src/lib/client/runtime/index.js 81:73-80
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
WARNING in ./libs/prisma/src/lib/client/runtime/index.js 85:15-22
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Debugger listening on <ws://localhost:59074/bf3dd720-b8d2-4f0e-91c1-d9b4532054a3>
Debugger listening on <ws://localhost:59075/bf3dd720-b8d2-4f0e-91c1-d9b4532054a3>
For help, see: <https://nodejs.org/en/docs/inspector>
C:\gits\boon\backend\dist\apps\cron\webpack:\libs\prisma\src\lib\client\runtime sync:2
var e = new Error("Cannot find module '" + req + "'");
^
Error: Cannot find module 'os'
at webpackEmptyContext (C:\gits\boon\backend\dist\apps\cron\webpack:\libs\prisma\src\lib\client\runtime sync:2:1)
at ../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js (C:\gits\boon\backend\dist\apps\cron\webpack:\libs\prisma\src\lib\client\runtime\index.js:1740:15)
at __require2 (C:\gits\boon\backend\dist\apps\cron\webpack:\libs\prisma\src\lib\client\runtime\index.js:89:45)
at ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js (C:\gits\boon\backend\dist\apps\cron\webpack:\libs\prisma\src\lib\client\runtime\index.js:2004:56)
at __require2 (C:\gits\boon\backend\dist\apps\cron\webpack:\libs\prisma\src\lib\client\runtime\index.js:89:45)
at Object../libs/prisma/src/lib/client/runtime/index.js (C:\gits\boon\backend\dist\apps\cron\webpack:\libs\prisma\src\lib\client\runtime\index.js:30779:33)
at __webpack_require__ (C:\gits\boon\backend\dist\apps\cron\webpack:\webpack\bootstrap:19:1)
at Object../libs/prisma/src/lib/client/index.js (C:\gits\boon\backend\dist\apps\cron\webpack:\libs\prisma\src\lib\client\index.js:17:5)
at __webpack_require__ (C:\gits\boon\backend\dist\apps\cron\webpack:\webpack\bootstrap:19:1)
at Object../libs/common/src/lib/services/prisma.service.ts (C:\gits\boon\backend\dist\apps\cron\webpack:\libs\common\src\lib\services\prisma.service.ts:2:1)
Omar
10/25/2021, 5:19 PMVladi Stevanovic
Vladi Stevanovic
Omar
10/29/2021, 8:47 PMPrisma Schema Sorter
was brought to life today!
You are more than welcome to give it a try, I have never built a public package before, so could really use your feedback and contributions, PRs are welcomed.
https://www.npmjs.com/package/prisma-schema-sorterJohn McElreavey
11/02/2021, 7:55 PMOmar
11/05/2021, 4:46 PMPrisma Schema Sorter
using the CLI, as simple as:
npx prisma-schema-sorter sort --schema=path
The schema
option can be omitted, if it's on the default path:
npx prisma-schema-sorter sort
Additionally, I personally added it to package.json
for quicker access and to integrate it with other scripts:
{
"scripts": {
"sort-schema": "npx prisma-schema-sorter sort --schema='./prisma/schema.prisma'"
}
}
In the future we could make it better by specifying other types of sorting besides the current default ascending
. You can always send your thoughts, suggestions and contributions there.
The latest version is here: https://www.npmjs.com/package/prisma-schema-sorterprgrmmr
11/08/2021, 12:18 PMHoliviel Valdez
11/08/2021, 7:23 PMHoliviel Valdez
11/08/2021, 7:23 PMVladi Stevanovic
Kenneth Gitere
11/10/2021, 8:23 AMKolade O. Adetoyinbo
11/10/2021, 9:18 AMn
11/11/2021, 1:20 PMOmar
11/19/2021, 7:26 PMMichael Stewart
11/22/2021, 5:33 PMItalo Gama
11/29/2021, 3:32 PMThe Texan
12/01/2021, 6:54 AMCro Tech
12/02/2021, 5:02 PMGopesh Jangid
12/13/2021, 12:10 PMStefano Giraldi
12/15/2021, 11:32 AMOb3KUwVSv
. What kind of ids they are and how they could be generated?Daniel Olavio Ferreira
12/24/2021, 2:30 PMAndrƩs RomaƱa
12/30/2021, 5:22 PMSamuel Noriega
12/30/2021, 6:02 PM