This is a reproduction based on instructions from this comment: prisma/prisma#25106 (comment)
- Install Dependencies:
npm install - Add a
.env.development.localfile with database URL:
DATABASE_URL_TEST1="postgresql://test1:test1password@localhost:5432/test-db?schema=test1"
- Run command:
npm run prisma:test1:migrate - Run command:
> npm run prisma:test1:generate - Start Server:
npm run dev - Go to URL:
http://localhost:3000/singleton/a- No Error - Go to URL:
http://localhost:3000/singleton/b- Should see the Error
Argument `query` is missing.
at Dn (./src/lib/prisma/generated/test1/runtime/library.js:5964:11)
at Mn.handleRequestError (./src/lib/prisma/generated/test1/runtime/library.js:6762:13)
at Mn.handleAndLogRequestError (./src/lib/prisma/generated/test1/runtime/library.js:6749:18)
at Mn.request (./src/lib/prisma/generated/test1/runtime/library.js:6729:18)
at async l (./src/lib/prisma/generated/test1/runtime/library.js:7397:25)
at async $$ACTION_0 (./src/actions/convert/singleton.ts:18:20)
digest: "1148600400"