Closed simonfossom closed 6 months ago
yeah, that is still using the old syntax. I will update this soon.
should be fixed now
@mProjectsCode sorry for late reaction but the problem persists in my vault. tried on clean vault same error.
Did you copy the example from the latest commit of the master branch? Because that version works for me without any problems.
Yes! sorry. my bad. works. I must of copied the old code
Activity Tracker and PF2e Encounter Calculator are not working in the example vault. All JavaScript codes are broken in the example vault.
Failed to execute JS
Failed to execute JS during execution "909030fd-61ea-407d-8774-f419e44c0ba2"
Error: [MB_INTERNAL] "invalid arguments supplied to function" caused by error "[
{
"code": "invalid_type",
"expected": "array",
"received": "undefined",
"path": [
"property"
],
"message": "Required"
}
]"
at jr (plugin:obsidian-meta-bind-plugin:110:56155)
at Ah.createBindTarget (plugin:obsidian-meta-bind-plugin:111:17437)
at Bo.eval [as func] (eval at buildFunction (plugin:js-engine), <anonymous>:5:23)
at Bo.runFunction (plugin:js-engine:45:61422)
at Go.execute (plugin:js-engine:45:66794)
at qr.tryRun (plugin:js-engine:45:1053)
at qr.renderResults (plugin:js-engine:45:1240)
at qr.render (plugin:js-engine:45:1934)
at qr.onload (plugin:js-engine:45:2188)
at e.load (app://obsidian.md/app.js:1:1167250)
I updated the example to use the new API. I also had to fix a few things in the plugin which I overlooked in the 1.0 release. I will release an update to the plugin possibly later today.
Please fill out these Check-boxes
This Issue Occurs on
Plugin Version
0.10.2
Describe the Issue
Example script 'Activity Tracker' trows error:
Steps to Reproduce
open the note from the link: https://github.com/mProjectsCode/obsidian-meta-bind-plugin/blob/0213492d77966304668eb5429f50cc23808aa4f8/exampleVault/Advanced%20Examples/Activity%20Tracker.md
Expected Behavior
Script should execute.