Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders.

Join

support-community

show-and-tell

general

open-source

announcements

How to resolve "use platform: node" error when compiling a node package?

The exact error is: The package "https" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error. Bit new to node, so not sure where exactly to include this setting. Any help would be greatly appreciated !...

Pagination with preloaded data

My main question is How to preload data with usePaginatedQuery
And i also want to ask... is this possible in Convex : Cursor-based pagination: allowing me to jump to a specific page using a cursor token Offset-based pagination...?...

Convex Auth with OTPs for React-Native with Expo error with verificationRequest

```Android Bundled 61ms node_modules/expo-router/entry.js (1 module) ERROR [CONVEX A(auth:signIn)] [Request ID: 028a44069ad9e8f7] Server Error Uncaught Error: Could not send at sendVerificationRequest [as sendVerificationRequest] (../../convex/ResendOTP.ts:22:4) at async handleEmailAndPhoneProvider (../../node_modules/@convex-dev/auth/dist/server/implementation/signIn.js:77:23)...

Convex Auth getUserIdentity() returns object without email

I have 2 applications: a nextjs and a react native expo app. The nextjs app uses the new convex auth lib for authentication while the expo app uses clerk. I am observing that when auth.getUserIndentity() is called from expo (in other word called within a function called from expo), it returns a user object with all keys: user name, phoneNmber, emailVerified...etc...

Getting Server error when setting Github sign in with Convex Auth in Next js

i am receiving this errior in my Next js terminal when trying to sign up using github in my Convex app.....Uncaught Error: Uncaught TypeError: "pkcs8" must be PKCS#8 formatted string

Remix and preloadQuery or alternatives

I'm trying to experiment with ways to avoid data loading flicker in Remix app. Is there a recommended approach to server side rendering / preloading? I tried putting preloadQuery from convex/nextjs in my remix component loader but get a bunch of errors. Any recommendations? My test code is: ```typescript...

Logs do not work

export const { auth, signIn, signOut, store } = convexAuth({ providers: [ GitHub({ account: (acc) => { console.log({ acc });...

I need to get the accesstoken and other information from Oauth with Github provider using convexAuth

I am building an app that would rely heaviily on githubs API, i need to be able to get the acess-token when I authenticate my app so that I can call githubs endpoints. Also, why is a user not created when I use a Githubapp just like it is when I use an OAuth App. My app requires users to create repos and do other things that are only available with github apps....

Using clerk node sdk in convex

I have been trying to use the "deleteUser" function offered by clerks node sdk and it doesnt seem to work. Has anyone done this before that can help point me in the right direction? (It looks like a clerk error, so if anyone can review if what im doing makes sense or needs changing, that'd be nice!) Code: ```...

convex with next server actions data fetching problem

i know i need to pass ctx in the frontend component but what exactly is ctx and how to pass it so that my server actions add data to the convex database
No description

Unable to log in

GitHub suspended my account about 10 days ago for reasons I don't know, and I've reached out to them getting no correspondence whatsoever. Because of it, I'm not unable to log in to my Convex dashboard. Convex doesn't support any other login methods. What should I do?

Are there any plans for a convex hosting service?

It would be nice to not have to manage a Netlify/Vercel/Other account.

Http actions VS Actions

Hey guys, I have a question, when I went through the docs, I'm not sure what is the main diff between http actions and actions. Wonder when to use which. 🧐

Convex Auth - /api/auth/ - 404 not found

Getting 404 on client for this API call - http://localhost:3000/api/auth/ Auth type: Phone OTP auth:signIn action is working and I'm able to get the OTP when running from convex dashboard, so I assume server part is fine. ...
No description

Auth Callbacks cannot use indexes when making a db.query()

I am attempting to use an auth callback to populate a table after user creation. This works, however, I need to query this table first to avoid creating duplicate records. Typescript does not accept any queries that include a withIndex(). Unclear whether I am doing something wrong or not? Example: ```Typescript export const { auth, signIn, signOut, store } = convexAuth({...
No description

Batch Patch Error

why is this throwing error ```ts export const updateFeaturedProducts = mutation({ args: {...

Convex Auth with NodeMailer OTP

Hi Team!, Instead of using Resent to send OTP, I want to use NodeMailer, is their any way to implement it?

convex-ents field options default and index

I have been working on setting up my schema using convex-ents and one thing I noticed is that when I am defining a field to give it options, I cannot give it a default as well as an index. Is this intended behavior? The use case is that I would like to increment the userCount each time someone joins a community. I will have to index it to order it by userCount. However, if I don't give it a default, I'll probably end up getting an error somewhere down the road because I'll forget to give it an initial value and try to increment 1 to undefined. .field("userCount", v.number(), { default: 1, index: true })...

Cant get to my convex dashboard

Hey Team, after i click the login button, i keep getting the error seen in the message. Seems like a 500 error. I tried claering cache and tried different browsers as well....
No description