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

self-hosted

announcements

Buffer not defined

Hi guys, I'm developing a mobile app with a Convex backend and have written functions using the bitcoinjs-lib library. When pushing these functions, I encounter a 'Buffer undefined' error. I've tried adding import ``` { Buffer } from "buffer"; ...
No description

Latest version of @convex-dev/auth is with some type errors using Resend as a magic link provider

I can't use react-email either; it seems like the react config parameter to load a react template isn't working.

Supposed to return ids in random order but mostly does one image

I'm trying to pull down 5 document entries in my "levels" table and it seems to only ever return the ids in the same order most of the time. Every once and a while and sometimes when I have to refresh the npx convex dev server, will it then pull a different image. Is my code wrong? ```tsx import { v } from "convex/values"; ...

API Functions Returning from Server but showing undefined in client

I'm having an issue now where my backend and my front end are not syncing with my api functions. The client is saying the ids are undefined even tho the server is saying they are being returned. Code: https://gist.github.com/DylanDevelops/c200090842b559c1837591662b1c8154...
No description

How to find a table entry from _id

I want to query the my table and find the table document that has the _id i pass in. How do I do this?

Document ID length

It looks from the source code like document IDs must be between 31 and 37 characters—is that correct? What are the odds that this ever changes?

Include relations data

Hi, what is the best way to get the related data in convex, like in prisma if i have a user table and a cars table i can get the user with the related cars using include. what is the best why to achive this in convex?

npx dev --run <func> no longer works

Using latest, 1.16.3. It looks like npx dev --run <func> no longer runs the provided function.

Svelte + Clerk | Any example of how to get it working?

Hey, i want to integrate clerk with convex, can anyone share an example of this integration or maybe what steps should i follow and i will it give a try (I'm using lucia but i would like to migrate) https://github.com/lucia-auth/lucia/discussions/1707 (will be deprecated) ...

Vercel deployment works but 'Could not find public function for'

I want to make this live:. https://github.com/MagMueller/turbo-expo-nextjs-clerk-convex-monorepo I use Next.js and clerk. Vercel deployment runs through successfully, and I can access my page for 1 sec www.time-is-money.xyz , but then I get Application error: a client-side exception has occurred. And in convex deployment logs I get ...
No description

clerk not supporting https://<site-name>.vercel.app

I started with templated which uses clerk. Now I want to test live. If clerk is not supporting .vercel.app, I need a custome domain, and that means i need to pay upgrade convex plan? Would be nice to test apps quickly also with clerk, without upgrade....

nextjs quickstart guide for javascript has a bug.

Attempted import error: './ConvexClientProvider' does not contain a default export (imported as 'ConvexClientProvider').

Send FCM notifications from convex backend

has anyone cracked sending FCM notification from convex nackend if i try use any admin sdk from google i get errors like the following. " The package "crypto" 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. ...

Not able to connect to Convex

I have been working on a site that uses Convex for about a week. Today, I ran into issues with connecting to Convex When I try to open my project in the dashboard, I see the convex loading spinner. ...

Issues deploying to Fly.io

I'm trying to deploy to Fly.io, but I keep hitting this error:
> [build 5/6] RUN npx convex deploy --cmd 'npm run build':
0.772 ✖ Error: You are not logged in. Log in with `npx convex dev` or set the CONVEX_DEPLOY_KEY environment variable.
> [build 5/6] RUN npx convex deploy --cmd 'npm run build':
0.772 ✖ Error: You are not logged in. Log in with `npx convex dev` or set the CONVEX_DEPLOY_KEY environment variable.
...

Union from data?

I'm migrating a detailed planning system from Airtable to Convex, and one of the data points on each task is the task type. In the original Airtable version, each type is assigned a color. When saving the data, though, I only want to save the name of the task type, with the color only being rendered inside the app for visual reference. Originally I had designed the table schema with the possible options for the task type like this: ```js taskType: v.union(...

Convex Auth: react-native expo OTP throws Uncaught Error: Could not verify code

I'm using the new convex auth in my react-native expo. I'm trying to implement authentication with OTP. After having followed the documentation here https://labs.convex.dev/auth/config/otps, I, then, follow the demo project here https://github.com/get-convex/convex-auth-example/blob/main/src/auth/SignInFormPhoneCode.tsx ...

npx convex import - always pushes to the same/wrong project

👋 Trying to get some test data into a table and for whatever reason, whenever I run npx convex import ... , the data always gets written to the wrong project in my account. - I only have 2 projects in my account. Projects A & B. I would like to import data into project B. If it matters, project A was created first. ...

Is there a way to control the websocket reconnect backoff?

Basically I want to cap the reconnect time to 10seconds. I was just doing some local testing and very quickly went over 20 seconds:
Attempting reconnect in 22248.468971814553ms
Attempting reconnect in 22248.468971814553ms
Any help greatly appreciated....

a little confused about getManyVia

Hey all, I have a table features which stores different feature options and joiner table property_features which connects the features to properties and has an additional details field for property specific information per feature. I'm trying to get all the property features (name, as well as the details), so I thought that getManyVia would be the best option to use, but I'm only getting the names but not the details. Have I misunderstood how this works? extract from schema...