Comments (3)
Published in 0.0.6
from prisma-docs-generator.
Hey @heymartinadams
I will fix this over the weekend and make a new release :).
Thanks for reporting!
from prisma-docs-generator.
Hey @pantharshit00 , I am also getting this error after upgrading to Prisma 2.8.0:
PS C:\fode\mtchero\prisma> npm run generate
> prisma@ generate C:\fode\mtchero\prisma
> cross-env CHECKPOINT_DISABLE=1 DEBUG=prisma-client,engine npx prisma generate --schema=schema.prisma
Environment variables loaded from provided --schema directory
Prisma Schema loaded from schema.prisma
Error:
✔ Generated Prisma Client (version: 2.8.0) to .\..\node_modules\@prisma\client in 6.35s
TypeError: Cannot read property 'type' of undefined
at C:\fode\mtchero\node_modules\prisma-docs-generator\dist\generator\model.js:393:47
at Array.map (<anonymous>)
at C:\fode\mtchero\node_modules\prisma-docs-generator\dist\generator\model.js:391:90
at Array.forEach (<anonymous>)
at ModelGenerator.getModelOperations (C:\fode\mtchero\node_modules\prisma-docs-generator\dist\generator\model.js:267:18)
at C:\fode\mtchero\node_modules\prisma-docs-generator\dist\generator\model.js:506:34
at Array.map (<anonymous>)
at ModelGenerator.getModels (C:\fode\mtchero\node_modules\prisma-docs-generator\dist\generator\model.js:500:38)
at ModelGenerator.getData (C:\fode\mtchero\node_modules\prisma-docs-generator\dist\generator\model.js:512:26)
at new ModelGenerator (C:\fode\mtchero\node_modules\prisma-docs-generator\dist\generator\model.js:35:26)
✔ Generated DBML Schema to .\dbml in 640ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! prisma@ generate: `cross-env CHECKPOINT_DISABLE=1 DEBUG=prisma-client,engine npx prisma generate --schema=schema.prisma`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the prisma@ generate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
`
Hope to apply your fix this weekend.
Thanks for this amazing and valuable tool.
from prisma-docs-generator.
Related Issues (20)
- [FIXED] Do not define a valid '.' target HOT 4
- Unknown arg `is` and `isNot` HOT 1
- [feat] Summary of models at top HOT 2
- Add enums to the docs HOT 2
- TypeError: mappings.filter is not a function HOT 3
- Cannot read property 'map' of undefined with Prisma v2.15 HOT 5
- Generating OpenAPI/Swagger Specs HOT 2
- TypeError: Cannot read property 'length' of undefined HOT 4
- hosting is not working [bug] HOT 5
- Generated HTML has styling issue HOT 1
- Can I use comments in `schema.prisma` HOT 1
- Can we please have 'full' examples that show how to create associations.
- Select property not included
- Must enable 'extendedIndexes` preview feature when trying to serve documents HOT 1
- Docs should specify to be a dev dependency HOT 1
- @default([]) will crash the generator HOT 2
- DARK MODE HOT 1
- Pagination and groupping + mermaid diagram HOT 1
- Hope not to generate operation contents
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-docs-generator.