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.

TypeError: Cannot read property 'field' of undefined

See original GitHub issue

Installation worked, got a hooray message, but this error happens when I run it.

/Users/path/to/lumber/project/node_modules/sequelize/lib/associations/belongs-to.js:64
  this.targetKeyField = this.target.rawAttributes[this.targetKey].field || this.targetKey;
                                                                 ^
TypeError: Cannot read property 'field' of undefined

Using Postgres on Heroku for DB. Installed with --ssl flag.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
solocreativecocommented, Nov 18, 2016

Thanks, on it’s way

0reactions
SteveMGitscommented, Apr 8, 2019

@VincentMolinie thanks for the followup! Should I create a new issue then? Or, if one already exists, would you please share it? We’re definitely interested in the product but I know we want to use UUIDs as our primary keys.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve "Cannot read property 'fields' of undefined"
Rename the field name constructor to any other name and try again.
Read more >
Cannot read property 'fields' of undefined
I'm using getter to display data fetched using wire service in lwc html and getting and error : Cannot ...
Read more >
Cannot read property 'fields' of undefined #12894 - GitHub
I am following the example how to build a cms-contentful blog. I get the error message: "Cannot read property 'fields' of undefined".
Read more >
How to Prevent the Error: Cannot Read Property '0' of Undefined
A guide on how to prevent the error "cannot Read Property '0' of Undefined", covering techniques such as try, catch, using const over...
Read more >
TypeError: Cannot read property 'type' of undefined is ...
It is also observed that a browser console error appears: on-Submit error 'TypeError: Cannot read property 'type' of undefined" for the administrator as ......
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