vanadium23 / obsidian-dataview-inlinedb

MIT License
21 stars 2 forks source link

Dataview: custom view not found for 'inlinedb/view.js' or 'inlinedb.js' #2

Open A-Communist opened 1 year ago

A-Communist commented 1 year ago

This is true for the example vault. Probably installation problems: "Copy folder inlinedb to dataview scripts folder."

Tried to place inlinedb folder in

1) ..\example_vault.obsidian\plugins\inlinedb 2) ..\example_vault.obsidian\plugins\dataview\inlinedb

and basically everywhere in the vault.

async view(viewName, input) { viewName = "inlinedb" input = query: "table start_date, draft from \"blog\"" ...

let viewFile = this.app.metadataCache.getFirstLinkpathDest(viewPath, this.currentFilePath);

viewPath = "inlinedb/view.js" this.currentFilePath = "how to convert in inlinedb.md"

viewFile = null

A-Communist commented 1 year ago

It works if inlinedb folder is placed in vault root. It is workaround and the problem must be addressed.

vanadium23 commented 1 year ago

Can I close the issue?

donjjones commented 8 months ago

Before closing, can you give more clarity around where the file / folder is supposed to be placed? I'm having the same issue, thanks

djdanner commented 8 months ago

Ivan, I had the same problem, and it took me a while to get that part to work. What did you intend by this statement "Copy folder inlinedb to dataview scripts folder."