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

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

Open
btd1337 opened this issue Sep 5, 2023 · 0 comments
Open

Comments

@btd1337
Copy link

btd1337 commented Sep 5, 2023

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)
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

No branches or pull requests

1 participant