Open ZobaJakColbert opened 4 months ago
I'm seeing this behavior as well with embedded tp.user commands causing the button to not render.
From Console:
app.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'path')
at t.
Very strange that the whole button disappears. I'm guessing the way user script plugins work have changed in some way since I implemented the handling.
@ZobaJakColbert can you post the script code so I have a minimal reproducible example? I currently don't have a user scripts.
I have repro'd the bug with the following minimal (change txt to js file):
name Add GM Session
type note(foo/bar/<% tp.user.getInt(tp) %>, split) template
action session-gm
templater true
^button-NewInt
I am seeing this as well. Templater: v2.2.3 Buttons: v0.5.1
I was using this code to add new accumulator to my collection. It was getting current number of accu and adding one with .js script named: getThisAcumulatorNum. But now button don't show up. If I remove this line
<% tp.user.getThisAcumulatorNum(tp, "AA") %>
button reappears. How to fix this?remove "\" before last "```"