question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pantharshit00commented, Feb 23, 2021

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.

0reactions
pantharshit00commented, Mar 11, 2021

Fixed in 0.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

typeError: Cannot read property 'map' of undefined (nextjs)
I just want to fetch this data. typeError: Cannot read property 'map' of undefined -> Error import styles from '../styles/ ...
Read more >
Fix the "Cannot read property 'map' of undefined" Error in React
Fix Option 1: Default the Variable to an Empty Array​​ This is fine—nothing will be rendered and there will be no errors. Once...
Read more >
Prisma Client API (Reference)
Wraps all fields of a model so that the list can be filtered by any property. If you do not filter the list,...
Read more >
npm err! cannot read properties of undefined (reading 'name')
1 and npm version is 8.13.2. I run 'npm install' in terminal and it gives me erors: npm ERR! Cannot read properties of...
Read more >
type-graphql/prisma2 - Gitter
TypeError : Cannot read property 'map' of undefined at new DmmfDocument (/Users/BB/node_modules/typegraphql-prisma/generator/dmmf/dmmf-document.js:16:35)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found