Closed 1tsmhmd closed 4 months ago
@iamhaghigh1 So what is the error? Your screenshot shows that the file reports an error. But you need to expose the specific error.
In addition, I noticed that you are using version 4.1. Can you use version 5.0?
Because this project is currently maintained by me alone, and there is no collaborator. So I don't have time to maintain the previous major version.
Therefore, the current maintenance strategy is to only maintain the current major version, and all bugs are fixed in the current major version.
In the training course, he said to use version 4.16.2, because the higher version has problems. I tried both version 4.16.2 and the latest version, but it still has a problem.
I use the latest version.
there are too many errors
Which version should I use and which version do you suggest I install?
@iamhaghigh1 The training course was probably written in the 4.x era, when Prisma made breaking changes that caused some unforeseen problems.
But they were fixed in subsequent versions. I recommend you use orm: ^5.0.4
and the latest version of Prisma CLI (5.16
).
In addition, I noticed that you might be using a more stringent custom lint rule. The orm
package only satisfies package:lints/recommended.yaml
, so you need to exclude the generated files from your custom lint rules. If you use the package:lints/recommended.yaml
rule, no processing is required.
You can find the examples we provide at https://github.com/medz/prisma-dart/tree/main/examples, but we do not use more stringent third-party custom lint rules.
When I run the command npx prisma generate , I encounter errors.
.env file
schema.prisma
npx prism generate
after the generate
what shoul i do?