Comments (10)
@Rodsevich You try to rerun the dart run orm generate
command to fix the problem.
from prisma-dart.
yeah, I ran:
dart pub get
dart run orm generate
dart run build_runner build --delete-conflicting-outputs
I had to edit the code to
final _i2.Engine engine = _i2.BinaryEngine(
logEmitter: _i2.PrismaLogEmitter([]),
to have the project built
from prisma-dart.
@Rodsevich
Can you provide a minimal reproduction example? I created a new Dart project and then used your command steps and still haven't found the problem.
from prisma-dart.
Our schema.prisma begins with:
generator client {
provider = "prisma-client-dart"
previewFeatures = ["interactiveTransactions"]
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL_WITH_SCHEMA")
}
model Entity {
from prisma-dart.
2.mov
from prisma-dart.
https://pastebin.com/73SS2sJB
This is the schema.prisma we have. If the bug doesn't replicate with that, do you know a way I can get rid of it on the project?
from prisma-dart.
This problem doesn't seem to be related to the schema, you try to regenerate the client after changing the orm version to 2.3.1 in pubspec.yaml
. I'll copy your schema and keep trying.
from prisma-dart.
I copied your schema to try. There were no problems either. Can I see the contents of your pubspec.yaml?
from prisma-dart.
Sure!
https://pastebin.com/EVCXTXUC
from prisma-dart.
Sorry, I still haven't found the bug. Prisma Client's logging field generation does not depend on schema, but this feature does confirm inclusion in version 2.3.1.
I suspected a Schema issue at first, after testing it wasn't. Then I suspected a dependency conflict or something, and found that it wasn't. Got it to work without issue on my computer as well as in the docker container.
This may require you to help debug:
- Remove the orm dependency (dart pub rmeove orm) from your project and re-depend on it (dart pub add orm), if the bug still exists, try 2.
- Create a new Dart project that depends on the orm package. Then generate the client whether the problem still exists. If this bug persists, please run
dart --version
and report the output to me. I will find the same version information for a targeted fork test.
from prisma-dart.
Related Issues (20)
- Support Flutter App HOT 31
- Generation error with array of enum HOT 4
- If the type in .prisma is primitive list type like Int[], then the generated fromJson will cause error: HOT 2
- Document the use of multiple schemas in the same project.
- generator error in orm: ^3.4.8
- Joins, include and select HOT 3
- Dart Wrapper for the Prisma Library HOT 1
- Generated models have optional properties when defined as required in schema HOT 3
- Prisma engine architecture mismatch HOT 10
- Npx Prisma Generate Fails with Orm 4.0.0 HOT 3
- generated_dart_client errors HOT 1
- scehma in Windows production source code contains newline characters causing exceptions HOT 29
- Enhancing the model with information HOT 11
- why don't Json HOT 2
- v4.x generates nullable attributes for non-nullable fields HOT 2
- Wrong generate model, why? HOT 2
- Prisma binary query engine not ready HOT 10
- prisma-query-engine is not closing when the program is finished HOT 1
- Dependency Dashboard
- Error updating field with null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma-dart.