Skip to content

TypeError: Cannot set properties of undefined (setting 'association')Β #86

@btd1337

Description

@btd1337

I'm trying to start with Denogres, but this error occurs when I try to generate model files from my already existing database.

Where is the error?

denogres --db-pull
error: Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'association')
          columnObj.association = {
                               ^
    at https://deno.land/x/[email protected]/src/functions/introspect.ts:272:32
    at Array.forEach (<anonymous>)
    at introspectTables (https://deno.land/x/[email protected]/src/functions/introspect.ts:179:18)
    at introspect (https://deno.land/x/[email protected]/src/functions/introspect.ts:93:24)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async dbPull (https://deno.land/x/[email protected]/src/functions/dbPull.ts:104:35)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions