Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

TypeError: Cannot read property 'hasOwnProperty' of undefined #24

Open
janpio opened this issue Mar 1, 2020 · 6 comments
Open

TypeError: Cannot read property 'hasOwnProperty' of undefined #24

janpio opened this issue Mar 1, 2020 · 6 comments

Comments

@janpio
Copy link
Contributor

janpio commented Mar 1, 2020

When using prisma-test-utils via prisma-test-utils-automation, some databases (schemas from: https://github.com/prisma/database-schema-examples) fail with this error message:

Error in: basic-blog (postgres)
TypeError: Cannot read property 'hasOwnProperty' of undefined
    at C:\Users\Jan\Documents\prisma-test-utils\src\static\seed.ts:1579:29
    at Array.reduce (<anonymous>)
    at insertFixtureIntoPool (C:\Users\Jan\Documents\prisma-test-utils\src\static\seed.ts:1578:10)
    at C:\Users\Jan\Documents\prisma-test-utils\src\static\seed.ts:995:31
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\Jan\Documents\prisma-test-utils\dist\static\seed.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
@maticzav
Copy link
Contributor

maticzav commented Mar 7, 2020

@janpio could you send me the export DEBUG=“*” log?

@maticzav
Copy link
Contributor

maticzav commented Mar 7, 2020

This seems to be the bug inside the Dataloader - .create method returns undefined.

This seems to be a regression in the new version of Prisma Client since my local setup also fails now.

Relevant part: https://github.com/prisma/prisma-client-js/blob/ff92b6a5bf1c5f8196900bccff01a97b070e1783/packages/photon/src/runtime/Dataloader.ts#L35

@maticzav
Copy link
Contributor

#29

@janpio
Copy link
Contributor Author

janpio commented Mar 10, 2020

How is #29 connected here?

@janpio
Copy link
Contributor Author

janpio commented Mar 10, 2020

This seems to be the bug inside the Dataloader - .create method returns undefined.

This seems to be a regression in the new version of Prisma Client since my local setup also fails now.

Relevant part: prisma/prisma-client-js:packages/photon/src/runtime/Dataloader.ts@ff92b6a#L35

Did you create an issue and reproduction for this?

@janpio janpio reopened this Mar 10, 2020
@maticzav
Copy link
Contributor

Divy’s issue is causing this bug. Once that gets resolved this bug shouldn’t appear anymore.

@janpio janpio removed their assignment Aug 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants