When I run this query creating a new daily note with Templater:
LIST
WHERE file.cday = date(<% tp.file.title %>)
SORT file.ctime DESC
on a Mac with macOS Ventura 13.2.1 and Obsidian 1.1.16, I get the following error:
Evaluation Error: SyntaxError: Unexpected identifier ‘file’
at DataviewInlineApi.eval (plugin:dataview:18370:21)
at evalInContext (plugin:dataview:18371:7)
at asyncEvalInContext (plugin:dataview:18381:32)
at DataviewJSRenderer.render (plugin:dataview:18402:19)
at DataviewRefreshableRenderer.maybeRefresh (plugin:dataview:17980:22)
at e.tryTrigger (app://obsidian.md/app.js:1:1064472)
at e.trigger (app://obsidian.md/app.js:1:1064405)
at t.trigger (app://obsidian.md/app.js:1:1841754)
at DataviewPlugin.eval (plugin:dataview:19399:76)
at s (app://obsidian.md/app.js:1:709926)
at l (app://obsidian.md/app.js:1:710032)
at r (plugin:obsidian-kindle-plugin:333:35936)
Yes, Templater is working fine with other templates. The problem is with dataview plugin because I create a new note that contains only the same query, and I get the same error:
Evaluation Error: SyntaxError: Unexpected identifier 'file'
at DataviewInlineApi.eval (plugin:dataview:18370:21)
at evalInContext (plugin:dataview:18371:7)
at asyncEvalInContext (plugin:dataview:18381:32)
at DataviewJSRenderer.render (plugin:dataview:18402:19)
at DataviewRefreshableRenderer.maybeRefresh (plugin:dataview:17980:22)
at HTMLDivElement.r (app://obsidian.md/enhance.js:1:11445)
OK, good to know it’s probably not Templater. That narrows it down (we hope).
When you get a chance, could your create a new vault, install only
Dataview, create a few untitled notes, and create a 2023-03-28 note (or your date) with only this query in it:
```dataview
LIST
WHERE file.cday = this.file.day
```