"Expected 0 arguments, but got 1."

I have a query:
const rows = db.select({ id: user.id }).from(user).where(eq(user.name, name)).limit(1);
const rows = db.select({ id: user.id }).from(user).where(eq(user.name, name)).limit(1);
When I run my svelte-kit check it outputs:
Error: Expected 0 arguments, but got 1.
const rows = await db
.select({ id: user.id })
.from(user)
Error: Expected 0 arguments, but got 1.
const rows = await db
.select({ id: user.id })
.from(user)
It is consistently repeatable, irrelevant of the query or restarting of the language server. Any ideas?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?