TypeError: Cannot convert undefined or null to object -> When updating YAML on creation of a templater template
VanillaBryce opened this issue · comments
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:
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?