Giter VIP home page Giter VIP logo

Comments (3)

pantharshit00 avatar pantharshit00 commented on June 27, 2024 3

Published in 0.0.6

from prisma-docs-generator.

pantharshit00 avatar pantharshit00 commented on June 27, 2024 2

Hey @heymartinadams

I will fix this over the weekend and make a new release :).

Thanks for reporting!

from prisma-docs-generator.

martineboh avatar martineboh commented on June 27, 2024 1

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.