Comments (4)
I had the same issue: the distributed package has not been built before publishing (dist is missing).
To solve it locally (not an actual solution), I went into the node_modules/zod-prisma directory, installed its own dependencies (yarn install
), and built it in place.
There were a few build errors with coalescing field types into strings, though these may be solved by the Prisma update PR (#38). If not, I'm happy to open a PR to help getting this package up to speed. I've hacked such a solution in the past and this approach (one file per model) seems more elegant.
from zod-prisma.
Yep, apologies for this one. I've been swamped with studying for (and taking finals) this weekend so I'm just now getting to work on this. I've pulled the bad version from npm so you won't have that problem again, but I'm working on getting a couple of other fixes and dependency updates in before I push a new version.
Thanks for creating an issue and for helping me improve/fix the package!
from zod-prisma.
Issue has been resolved with version 0.3.0! Let me know if you have any lingering issues.
from zod-prisma.
Thanks for the quick release! It's working like a charm on my end.
Best of luck for your exams!
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.