chhoumann / MetaEdit

MetaEdit for Obsidian
https://bagerbach.com
GNU General Public License v3.0
393 stars 15 forks source link

TypeError: Cannot convert undefined or null to object -> When updating YAML on creation of a templater template #88

Open VanillaBryce opened 1 year ago

VanillaBryce commented 1 year ago

I have been trying to figure out what I'm doing wrong, if anything, for hours. I am just trying to update the name field to be consistent with the filename after I create a new file from a templater template. I've tried just about everything I can think of to resolve this issue.

I've checked the type of the variable named file and it comes back as an object, so I don't understand why I'm seeing this: metaedit_error

My guess is that I'm just doing something wrong, but I really have no idea. I would love to be able to fix this, because I could automate a lot of my metadata creation if I can get this working. Please let me know what I'm doing wrong or tell me how to fix this issue.

Here is the template file: settlement.md

My only active plugins are templater and metaedit.

UPDATE: I found out that the error is actually occurring any time I create a new note from a template, even if the note does not have any scripts that access the metaedit api? Could this be a templater compatibility issue?