EntityMetadata.createPropertyPath TypeError: Cannot convert undefined or null to object
See original GitHub issueIssue 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.
Thank you in advance for your help.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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