18 questions
0
votes
0
answers
98
views
React Native + Clerk + Convex: Preventing UI Flash During OAuth Login - Query Updates Multiple Times
Question:
I'm using Clerk for authentication and Convex for my database in a React Native app with Expo Router. I'm experiencing a brief flash of UI content during OAuth login (Google/GitHub).
The ...
0
votes
0
answers
62
views
Error occurred prerendering page "/_not-found"
I get this error:
error here
I don't know why I'm getting this error considering everything runs properly on local host when using npm run dev, but when I run npm run build, or try to deploy to vercel,...
0
votes
1
answer
121
views
Page Routing with ConvexProviderWithClerk?
I am trying to follow the Convex wiki for configuring with Clerk. The example uses App Routing.
https://docs.convex.dev/auth/clerk#nextjs-react-native-expo-gatsby
I modified the code for page routing ...
0
votes
0
answers
37
views
I can't get aliexpress meta tags using server functions
I’ve been stuck on an issue while trying to fetch metadata (like title, and images) from Aliexpress product URLs in my serverless functions hosted on Vercel. Here’s the weird part: it works perfectly ...
-1
votes
2
answers
1k
views
Error:Clerk: useAuth() called in static mode, wrap this component in <ClerkProvider dynamic> to make auth data available during server-side rendering
Question:
I'm working with Next.js and using Clerk for authentication alongside the Convex client. I encountered this error:
Error: Clerk: useAuth() called in static mode, wrap this component in <...
1
vote
2
answers
381
views
Getting a console error when using Convex in NextJs
Getting this error when I wrap inside .
[ Server ] Error: Route "/" used headers().get('Host'). headers() should be awaited before using its value. Learn more: Nextjs
layout.tsx
export ...
0
votes
1
answer
2k
views
Error while trying to use "npx convex dev"
I have a Next.js App with TypeScript option. I integrated Convex to the setup using the docs next.js quickstart and everything went well. But, when I turned off the database server and tried to run ...
0
votes
2
answers
177
views
CopyObjectCommand does not copy the file Returns Error Header not implemented
In my Nextjs project I'm trying to copy files using (CopyObjectCommand).
Using @aws-sdk/client-s3: 3.616.0
The PutObjectCommand and DeleteObjectCommand are working fine. However, the CopyObjectCommand ...
1
vote
1
answer
872
views
Queries and best practices: How to query multiple tables and return object using Convex.dev?
I have a few queries, that seems very large in terms of lines of code, and I was wondering if there is a better way to do this. This example is a get query from multiple tables to then end up ...
0
votes
1
answer
543
views
Issue with Second User Not Adding to Convex Database
Running into a snag with my project setup—leveraging Clerk for authentication & Convex for the DB. Oddly, the second user's not getting added in Convex, even though Clerk's updating smoothly. Any ...
0
votes
1
answer
922
views
Clerk + Convex Auth
I have an application with Clerk authentication. I decided to add a module to it that uses Convex. I decided to combine them and it worked out. When I log into a new module, I see the same user. But ...
3
votes
1
answer
1k
views
BadConvexModuleIdentifier: Hit an error while pushing when doing 'npx convex dev'
I am using Convex for the first time and i just added all my files:
However when i hit npx convex dev i get this error,
Error fetching POST https://enchanted-buffalo-216.convex.cloud/api/push_config ...
0
votes
1
answer
609
views
Next JS Convex Cloud Node Modules not compiling
I am creating RAG application. My Tech-Stack is NextJS, Convex for storing users data and chat-history. Astra-DB for storing my vectorized data of documents. The problem is I want to connect my Astra-...
1
vote
2
answers
1k
views
Convex with Clerk | don't redirect me to the Login page
my ConvexClientProvider file is:
"use client";
import { ReactNode } from "react";
import { ConvexProviderWithClerk } from "convex/react-clerk";
import { ClerkProvider, ...
0
votes
1
answer
459
views
authMiddleware() is deprecated in nextjs
import { authMiddleware } from "@clerk/nextjs/server";
export default authMiddleware();
export const config = {
matcher: ["/((?!.+\\.[\\w]+$|_next).*)", "/", "/(...
0
votes
1
answer
382
views
upstream image response failed for 400
I can't see my images, is there something wrong with my code?
file-card.tsx
function getFileUrl(fileId: Id<"_storage">): string {
return `${process.env.NEXT_PUBLIC_CONVEX_URL}/api/...
1
vote
1
answer
1k
views
@clerk/clerk-react: Missing publishableKey in clerk
"use client";
import React from "react";
import { ClerkProvider, useAuth } from "@clerk/clerk-react";
import { ConvexProviderWithClerk } from "convex/react-clerk&...
1
vote
1
answer
585
views
Is there a way to get only few selected columns from the Convex database?
This snippet of code fetches all the columns from the table, is there a way to do that, I didn't find any thing in the docs, does someone know a trick or something
const documents = await ctx.db
...