prisma icon indicating copy to clipboard operation
prisma copied to clipboard

`validate` error: `Details: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined`

Open janpio opened this issue 3 years ago • 0 comments

PS C:\Users\Jan\Documents\throwaway\...> npx prisma validate --schema .\prisma\foo.prisma
Environment variables loaded from .env
Prisma schema loaded from prisma\foo.prisma
Error: Get DMMF: Error while trying to read datamodel path
Details: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined

Prisma CLI Version : 4.2.0

Seems it broke between 3.14.0 and 3.15.0 (but the error message was improved only later)

janpio avatar Aug 09 '22 21:08 janpio