NEEGHAN
Explore posts from serversCCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`
No noticeable drawbacks
13 replies
CCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`
Update: it started working once I disabled TS project references for the convex project (
@nx/convex
which contained Convex code and was being imported from by @ns/nextjs-app
which contained Next.js app code). So I set "composite"
, "declarationMap"
and "emitDeclarationOnly"
to false
in the project's tsconfig
s and dereferenced the project everywhere else (removed from "references"
of root tsconfig
and the Next.js app's tsconfig
).13 replies
CCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`
Another interesting thing is that when running
tsc --build
for the Next.js app project, I get a type error
which doesn't show up in the editor. So there's inconsistency between tsc
and editor integration as well.
(FYI, I have set up "typescript.tsdk"
to point to node_modules
TS SDK.)
So at compile-time, TypeScript seems to think api
is just an empty object??13 replies
CCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`

13 replies
CCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`

13 replies
CCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`
Yeah, I tried those things as well (nuking node_modules, restarting TS language server) but it didn't help 😅
13 replies
CCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`
For context, here's the
schema.ts
:
13 replies
CCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`
FYI, if I import
dataModel.d.ts
in the Next.js app, the Doc
type also resolves to never
:
13 replies
CCConvex Community
•Created by NEEGHAN on 4/27/2025 in #support-community
`useQuery` returning type `never`
Same happens if I explicitly type
messages
or handler
:
But if the type doesn't use anything that comes from the data model (schema), then it weirdly enough works:
13 replies
TTCTheo's Typesafe Cult
•Created by NEEGHAN on 2/1/2023 in #questions
How well can I rely on Tailwinds ability to know what classes to include in the CSS?
So does it perform a simple search on each file to find the class names or is it a more intricate process that involves analyzing the AST? For example, if I write a complete class name in a comment or in an unused variable, will it still include that class name or will it know that it doesn't have to include that class name?
7 replies
TTCTheo's Typesafe Cult
•Created by NEEGHAN on 2/1/2023 in #questions
How well can I rely on Tailwinds ability to know what classes to include in the CSS?
Okay. Thanks!
7 replies
TTCTheo's Typesafe Cult
•Created by NEEGHAN on 9/30/2022 in #questions
Many-to-many relationship in SQL as table or JSONB array?
So I was considering object columns mainly for the convenience of in the client being able to fetch games (
select * from games
through PostgREST) and receiving objects where players
is an array of player ids. Now if I want to get objects shaped like that in the client, I’d have to built an endpoint which makes many underlying queries.9 replies
TTCTheo's Typesafe Cult
•Created by NEEGHAN on 9/30/2022 in #questions
Many-to-many relationship in SQL as table or JSONB array?
Yes I will! Do you have any resources (videos, articles) on the topic that you’d especially recommend?
9 replies