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.

EntityMetadata.createPropertyPath TypeError: Cannot convert undefined or null to object

See original GitHub issue

Issue type:

[x] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ ] mssql [x] mysql / mariadb [ ] oracle [ ] postgres [ ] cockroachdb [ ] sqlite [ ] sqljs [ ] react-native [ ] expo

TypeORM version:

[x] latest [ ] @next [ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem:

ERROR:

TypeError: Cannot convert undefined or null to object

CODE:

await this.releaseRepository.insert({version, commit, name,  tag}) 

Same code to insert entity worked on version 0.2.24, but 0.2.26 will throw error.

When I debug, mysql had work successfully, then program walk in this snippets and throw error.

image

image

Thank you in advance for your help.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
Sieabahcommented, Oct 7, 2020

Also ran into this and I think setting the reload to false is an unacceptable solution to the problem. This issue didn’t show itself until after it was in production and nothing could be saved anymore. It worked perfectly fine in development with nestjs but I ended up downgrading to 0.2.24 which fixed the issue for now.

1reaction
imnotjamescommented, Jul 31, 2021

Given that we aren’t able to reproduce this issue I’ll be closing it out.

However, if anyone finds this again and can create a reproducible example which exhibits the errant behaviour please open a new issue with that info!

Cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is the 'TypeError: Cannot convert undefined or null to ...
I have determined the type using typeof at all stages to try and debug and its returning type object at all points. The...
Read more >
Cannot convert undefined or null to object
Hello, I have a vacation flow created some times ago; in the last iteration I added an update action where I update a...
Read more >
Error: "TypeError: Cannot convert undefined or nul...
Issue Enter the correctly formatted Server URL used to log on to Tableau Server via ' Sign In to Tableau Server ' configuration...
Read more >
typeerror: cannot convert undefined or null to object - You.com
Answer specific to the code in question. The line if (obj === 'null') { return null;} // null unchanged will not evaluate when...
Read more >
Cannot convert undefined or null to object ( But we didn't ...
Hi Retool team, Since this morning, we have this error message that appears (Cannot convert undefined or null to object).
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