PrismaP
Prisma8mo ago
3 replies
ryanisaboi1

Multifile schema example not working https://github.com/prisma/dub

I cloned the example https://github.com/prisma/dub and tried running npx prisma generate and get the following error:

You can either provide it with --schema argument,
set it in your
prisma.config.ts
,
set it as prisma.schema in your package.json,
or put it into the default location (./prisma/schema.prisma, or ./schema.prisma.
Checked following paths:

schema.prisma: file not found
prisma/schema.prisma: file not found

See also https://pris.ly/d/prisma-schema-location
GitHub
Open-source link management infrastructure. Contribute to prisma/dub development by creating an account on GitHub.
Documentation regarding proper location of Prisma Schema including default naming and multiple files.
Prisma Schema Location and Configuration | Prisma Documentation
Was this page helpful?