i have a template like this, that was working before update
<%*
let tfil = app.workspace.lastOpenFiles[0];
let tfile = tfil.replaceAll(“.md”, “”);
let cache = app.metadataCache.getCache(tfil);
let tag= cache.frontmatter[“tags”];
%>—
aliases: []
tags: [<% tag %>]
Creation: =this.file.cday
Last Change: = date(today).day - this.file.mtime.day + " Days"
: [[<% tfile %>]]