Template aborting dv is not defined when using dataviewjs

Things I have tried

What I’m trying to do

I’m using How I Manage Projects and Goals in Obsidian | Christian B. B. Houmann (bagerbach.com)

And I’m trying to add this in my goal note

%%
Bar:: `$= dv.view('99 - Templates/Scripts', {file: 'Go - test'})`
Projects:: `$= const projects = dv.page('Go - test').file.inlinks.where(p => { const mp = dv.page(p.path); return mp.tags?.contains('project') && mp.status === 'In Progress'}); if (projects.length > 0) { dv.header(4, projects.length > 1 ? "Projects" : "Project"); dv.list(projects) }`
%%

but when i creating a new goeal note template error apaer and the progress bar doesn’t work

My consol

image

My dashboard note

Did you happen to figure this out? I’m receiving the same error using dv.view().

The Dataview view loads just fine upon opening the page. It’s when I try to insert a template containing a Templater execution command that I get this error in the console.

the problem happens because of the progress bar script from
How I Manage Projects and Goals in Obsidian | Christian B. B. Houmann (bagerbach.com)
when i delete the script, everything works fine, but I had to find another way to use progress bar

1 Like

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