V1.4.5 Templater Error: Template parsing error, aborting. Cannot read properties of undefined (reading 'start')

What I’m trying to do

Since updating to v.1.4.5, many of my Templater templates have broken. I receive the error in the console:

Templater Error: Template parsing error, aborting. 
 Cannot read properties of undefined (reading 'start')

I am not sure where to begin troubleshooting this since ‘start’ does not appear anywhere in the code in my templates. I don’t know what the error is referring to.

Things I have tried

I’ve tried disabling Properties View in Core Plugins config and setting Properties in document in Editor config to both Hidden and Source.

Any help you could offer would be greatly appreciated. I had quite a complex task gamification workflow coded through Templater and I’m pretty heartbroken over this.

2 Likes

Below is an example of a template that is resulting in the error when I insert it:

<%*
const {update, autoprop, getPropertyValue} = this.app.plugins.plugins["metaedit"].api

const claricAP = await getPropertyValue("claricAP", tp.file.path(true))

const gMember = await autoprop("guild")
const gAttr = gMember + "HP"
let gPath = gMember + ".md"
const firstLetter = gPath.charAt(0).toUpperCase()
const remainingLetters = gPath.slice(1)
gPath = firstLetter + remainingLetters
const getHP = await getPropertyValue(gAttr, gPath)

console.log("gMember: " + gMember)
console.log("gAttr: " + gAttr)
console.log("gPath: " + gPath)
console.log("getHP: " + getHP)

await update(gAttr, getHP + 2, gPath)
await update("claricAP", claricAP - 1, tp.file.path(true))
-%>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.