You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model values are undefined while data values are #13527
Hi @Androz2091 just curious in your tsconfig.json is your "target" set it to "ESNEXT"? If yes change it to "ES2021" and the issue should be fixed.
Hope this could help any other person with the same issue.
Activity
Androz2091 commentedon Oct 3, 2021
So I switch to Typeorm
Hope you'll be able to fix the bug anyway!
hugo-aviles-signpost commentedon Jan 7, 2022
Hi @Androz2091 just curious in your tsconfig.json is your "target" set it to "ESNEXT"? If yes change it to "ES2021" and the issue should be fixed.
Hope this could help any other person with the same issue.
ephys commentedon Jan 7, 2022
The documentation has been updated to explain why it fails & how to make it work with TypeScript:
https://sequelize.org/v6/manual/model-basics.html#caveat-with-public-class-fields
vrepettoPolo commentedon Jun 24, 2025
Was using babel, tried everything and nothing worked. Changing to tsc worked for me.