Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'map' of undefined with Prisma v2.15 #24

Closed
codeslayer1 opened this issue Jan 27, 2021 · 5 comments · Fixed by #27
Closed

Cannot read property 'map' of undefined with Prisma v2.15 #24

codeslayer1 opened this issue Jan 27, 2021 · 5 comments · Fixed by #27

Comments

@codeslayer1
Copy link

I am getting this error when running npx prisma generate. I am using Prisma v2.15 and nativeTypes

Error: 
✔ Generated Prisma Client (2.15.0) to ./node_modules/@prisma/client in 3.69s

TypeError: Cannot read property 'map' of undefined
    at TOCGenerator.getTypes (/Users/akash/Documents/kaamwork/kaamwork-nest/node_modules/prisma-docs-generator/dist/generator/toc.js:84:47)
    at TOCGenerator.getData (/Users/akash/Documents/kaamwork/kaamwork-nest/node_modules/prisma-docs-generator/dist/generator/toc.js:94:25)
    at new TOCGenerator (/Users/akash/Documents/kaamwork/kaamwork-nest/node_modules/prisma-docs-generator/dist/generator/toc.js:5:26)
    at HTMLPrinter.toHTML (/Users/akash/Documents/kaamwork/kaamwork-nest/node_modules/prisma-docs-generator/dist/printer/index.js:47:24)
    at Object.onGenerate (/Users/akash/Documents/kaamwork/kaamwork-nest/node_modules/prisma-docs-generator/dist/index.js:49:101)
    at async LineStream.<anonymous> (/Users/akash/Documents/kaamwork/kaamwork-nest/node_modules/@prisma/generator-helper/dist/generatorHandler.js:13:32)
@pantharshit00
Copy link
Owner

pantharshit00 commented Jan 27, 2021

Hi, I haven't updated this package in a while so this is expected. I plan to fix this soon.

@martin-aussenhof
Copy link

Hi @pantharshit00,

I was wondering if you have a rough estimate on when you will add this update. I acknowledge that you mostly like have many other things to do, but I really like this package and would like to add it back into my projects.

Thanks,
Martin

@pantharshit00
Copy link
Owner

Hey @martin-aussenhof

I am having my exams for my university so didn't find much spare time. Hopefully by end of this month I will have some time for this.

@martin-aussenhof
Copy link

Thank you @pantharshit00. I hope your exams are going well!

@pantharshit00
Copy link
Owner

Fixed in 0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants