Vignesh Gupta
Vignesh Gupta
Explore posts from servers
CCConvex Community
Created by Vignesh Gupta on 8/20/2024 in #support-community
The inferred type of X cannot be named without a reference (some module path)
Hello Convex team I've recently started with Turborepo and migrated my existing app to turborepo. earlier I had some issue so I'm going with simpler approach i.e. add convex in the apps/web only just like a simple nextjs app. But while build I'm having a type issue:
The inferred type of 'generateUploadUrl' cannot be named without a reference to '@/node_modules/convex/dist/esm-types/server/registration'. This is likely not portable. A type annotation is necessary.ts(2742)
The inferred type of 'generateUploadUrl' cannot be named without a reference to '@/node_modules/convex/dist/esm-types/server/registration'. This is likely not portable. A type annotation is necessary.ts(2742)
Code link (which line where error is happening) - https://github.com/vignesh-gupta/projectify/blob/729c37b6035a8bcb86ab3317de72b7c3420f5c13/apps/web/convex/resources/storage.ts#L5C14-L5C32
2 replies
CCConvex Community
Created by Vignesh Gupta on 8/19/2024 in #support-community
Type error: Type instantiation is excessively deep and possibly infinite.
No description
2 replies
CCConvex Community
Created by Vignesh Gupta on 8/19/2024 in #support-community
Loosing Type safety for 1 table only in convex with Turporepo (NextJS)
No description
13 replies
TTCTheo's Typesafe Cult
Created by Vignesh Gupta on 8/9/2024 in #questions
Next Image issue in PROD
Hey Guys need some help! I've a CMS endpoint serving image - https://d-tv-project.vercel.app/api/media/file/landing-1.jpg While using the next image the src url becomes - https://d-tv-project.vercel.app/_next/image?url=https%3A%2F%2Fd-tv-project.vercel.app%2Fapi%2Fmedia%2Ffile%2Flanding-1.jpg&w=640&q=75 The src url in working as expected in Production while in local is working
2 replies
CCConvex Community
Created by Vignesh Gupta on 2/13/2024 in #support-community
Identity issue with Clerk Prod
Hello there, I'm facing issue const identity = await ctx.auth.getUserIdentity(); post deploying to prod with clerk prod instance, works fine dev instance. Provides identity as null.
5 replies
CCConvex Community
Created by Vignesh Gupta on 9/10/2023 in #support-community
UseQuery Issue
Hey All, I'm following the doc - https://docs.convex.dev/functions/query-functions#query-context my convex function
export const getTask = query({
args: { id: v.id("tasks") },
handler: async (ctx, args) => {
return await ctx.db.get(args.id);
},
});
export const getTask = query({
args: { id: v.id("tasks") },
handler: async (ctx, args) => {
return await ctx.db.get(args.id);
},
});
calling from frontend-
const task = useQueries(api.tasks.getTask, {id: "3a3xm5jy5992ta30kvwety479jd8hz0"});
const task = useQueries(api.tasks.getTask, {id: "3a3xm5jy5992ta30kvwety479jd8hz0"});
But getting an error - Expected 1 arguments, but got 2.ts(2554)
3 replies