Closed seomwan closed 6 months ago
I see the api changed and there's a new required argument:
This does silence that error and give a new one, although I'm not sure what needs to be passed in:
mb.createBindTarget('activities', context.file.path, ['activities'])
And the corresponding test doesn't seemed to be updated yet:
But that api looks even more outdated (different?) than the current code I'm using..
Okay, just missed the doc comments right above that:
Updated my code to:
const mb = engine.getPlugin('obsidian-meta-bind-plugin').api;
const bindTarget = mb.createBindTarget('activities', context.file.path);
And it still gives an error, but I'm pretty sure it's due to another problem:createInputFieldDeclarationFromString
no longer exists
Tried to trace it until:
I don't know why it gives undefined here, and I'm out of time, so I'll check it later..
Oh yeah, it seems like I forgot to finish the new API for creating the tables.
Released a new canary release that with the new API and updated the pf2e example.
I'm getting an Error:
mb.createTableMountable
is not a function
Edit: restarting fixed it
Please fill out these Check-boxes
This Issue Occurs on
Plugin Version
1.0.3
Describe the Issue
Here's the example I used as reference:
https://github.com/mProjectsCode/obsidian-meta-bind-plugin/blob/831c052dbbe6ebe572fbe627f2bb5b1cd3cd0b83/exampleVault/Advanced%20Examples/Activity%20Tracker.md?plain=1#L12
Gives the error:
Steps to Reproduce
Reproducible in a new test vault with Metabind and JSengine installed: