Cannot read property 'map' of undefined with Prisma v2.15
See original GitHub issueI 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:
- Created 3 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Fixed in 0.2.0