prisma: Error with Prisma v15: can't find prisma.schema
I updated to prisma version 15 and when I run prisma2 generate in a docker environment, I receive the error:
Error: Can't find prisma.schema
I don’t see that the filename has been changed from schema.prisma
to prisma.schema
so this seems like a bug.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 46 (15 by maintainers)
Commits related to this issue
- Addresses #824 — committed to prisma/prisma by timsuchanek 5 years ago
Prisma
2.2.1
with `prisma/schema.prisma’ at the root of the project.Trying to deploy to AWS Beanstalk, I get the following error:
Error: Either provide --schema or make sure that you are in a folder with a schema.prisma file.
It happens during this phase:
Any ideas?
@pantharshit00 I’ll be back in this code over the weekend and see if I can still repro the issue on the latest versions that have been released this week and report back.
Thanks a lot for reporting everyone! That was a regression introduced in https://github.com/prisma/prisma2/pull/789/files.
Fixed in latest alpha. You can try it out with
npm i -g prisma2@alpha
.The latest alpha has a fix with the correct error message. In case you indeed didn’t have a
schema.prisma
file in your folder, we can close this.@pantharshit00 , I can now longer reproduce this with preview016.
@timsuchanek so you are not using now secrets, if I unterstand you correctly, and everything elsr is the same as in the repo. Maybe it‘s got something to with those now secrets. I can test tomorrow, and will let you know my findings.