Comments (6)
Is this with "type": "module" or one of the command line flags for node?
from zod-prisma.
I am using "type": "module"
from zod-prisma.
Okay, last question. I'm looking to try and test some of these changes myself. How are you running node on these typescript files? Are you just compiling them with tsc and then running them? Are you using ts-node? Thanks in advance for your help!
from zod-prisma.
I am using ts-node like this:
https://twitter.com/capajj/status/1496057264586768388?t=h2WClBTeWWGEW5m-X6ZKkw&s=19
😅
from zod-prisma.
Could you test the fix from the fix/99 branch by placing this tarball (zod-prisma-v0.5.5.tar.gz) in your project directory and updating your package.json with the following?
"zod-prisma": "file:./zod-prisma-v0.5.5.tar.gz"
Thanks for your help!
from zod-prisma.
Whoops! You'll also have to add the following to your schema.prisma
generator zod {
...
nodeEsModules = true // this line
}
from zod-prisma.
Related Issues (20)
- useDecimalJs = true does not work
- 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
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.