blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
6.94k stars 411 forks source link

Bug report dv.lists Evaluation Error: TypeError: e is not a function #2308

Open jwvanderbeck opened 5 months ago

jwvanderbeck commented 5 months ago

What happened?

I am trying to learn how to use DataviewJS to do more advanced things beyond the norm, but I can't even seem to get anythign to render using dv.list as per the docs?

I am using just a very simple call from the docs to render a hard coded list but I get this error, and you can't even re-edit the block when this error appears

Evaluation Error: TypeError: e is not a function
    at l$1.__b (plugin:dataview:15036:2086)
    at l$1.__b (plugin:dataview:15038:811)
    at L$1 (plugin:dataview:15034:5047)
    at D$1 (plugin:dataview:15034:9062)
    at ReactRenderer.onload (plugin:dataview:15279:9)
    at e.load (app://obsidian.md/app.js:1:1167250)
    at e.addChild (app://obsidian.md/app.js:1:1167651)
    at DataviewApi.list (plugin:dataview:19460:19)
    at DataviewInlineApi.list (plugin:dataview:18838:25)
    at eval (eval at <anonymous> (plugin:dataview), <anonymous>:1:42)

DQL

No response

JS

dataviewjs
dv.list([1, 2, 3])

Dataview Version

0.5.66

Obsidian Version

1.5.12

OS

Windows

jwvanderbeck commented 5 months ago

This started happening on dv.table as well. Restarting Obsidian seems to have fixed it (for now) but I have no idea how started in the first place.

holroy commented 5 months ago

I'm not able to reproduce this issue, so please report back with a more reliable trigger on the potential bug.