Comments (9)
I think the generator should output a warning when it can't find the zod dependency.
from zod-prisma.
Sounds good to me! Thanks for the feedback
from zod-prisma.
Another user suggested that this might be a missing dependency on zod. Make sure you've got zod as a dependency and try again.
If that doesn't work, let me know and I'll see if there's anything else I can do.
from zod-prisma.
@CarterGrimmeisen I installed zod as a dev dependency as mentioned in the README. Should I install it as a prod dep instead?
from zod-prisma.
also did not work.
from zod-prisma.
It works now!
Thank you.
from zod-prisma.
@CarterGrimmeisen If possible, can I submit a PR for that?
from zod-prisma.
I encountered this as well -- a missing zod dependency warning would be great!
from zod-prisma.
I encountered this as well -- a missing zod dependency warning would be great!
@tatethurston I have submitted a PR since then to fix this, but it hasn't been merged or even reviewed I guess.
from zod-prisma.
Related Issues (20)
- Generated imports don't work with Typescript 4.7 module type
- Upcoming rename of `@prisma/sdk` to `@prisma/internals` with Prisma 4 HOT 2
- Optional fields should use nullable instead of nullish HOT 1
- Add support for model level definition
- Add support for connectors
- Handle composite types
- Possibility to pre-release feat/1.0-beta
- Upgrade to Prisma v4
- Support for Prisma v4 HOT 3
- Passing arguments to "z.string()" HOT 2
- new relationModel with optional relations
- More examples
- Custom Zod Schema in an Int field stills adds .int() at the end
- Is this library alive? HOT 30
- Decimal validation wrong for data loaded from database
- Impossible to `yarn remove zod` while `zod-prisma` is installed
- nullish with id autoincrement HOT 4
- Mongo DB Support
- typescript, which is a runtime dependency, is specified as a devDependency
- Bytes is `z.unknown`
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 zod-prisma.