Hi, I’m trying to list five projects I’ve worked on recently, and I’m trying to use the limit() function when writing dataviewjs, but it’s reporting an error. I’d like to ask how to fix it and the correct format to write it.
Evaluation Error: TypeError: dv.pages(…).limit is not a function
at eval (eval at (eval at (app://obsidian.md/app.js:1:1287967)), :2:31)
at DataviewInlineApi.eval (eval at (app://obsidian.md/app.js:1:1287967), :12386:16)
at evalInContext (eval at (app://obsidian.md/app.js:1:1287967), :12387:7)
at DataviewJSRenderer.eval (eval at (app://obsidian.md/app.js:1:1287967), :12877:17)
at Generator.next ()
at eval (eval at (app://obsidian.md/app.js:1:1287967), :26:71)
at new Promise ()
at __awaiter (eval at (app://obsidian.md/app.js:1:1287967), :22:12)
at DataviewJSRenderer.render (eval at (app://obsidian.md/app.js:1:1287967), :12869:16)
at DataviewJSRenderer.eval (eval at (app://obsidian.md/app.js:1:1287967), :12864:28)
Wow, slice() is working!
I confirmed the plugin version is 0.4.5…? I don’t know if it’s a version issue. I’ll update it later and try again.
Thank you very much for your help!