Itsacoup
CCConvex Community
•Created by Itsacoup on 10/4/2024 in #support-community
Did you mean 'typeof ConvexProvider'?
Example straight outta of next.js quickstart has the ConvexProvider component throwing this TS error.
"'ConvexProvider' refers to a value, but is being used as a type here. Did you mean 'typeof ConvexProvider'?ts(2749)"
"use client";
import { ReactNode } from "react";
import { ConvexProvider, ConvexReactClient } from "convex/react";
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);
export function ConvexClientProvider({ children }: { children: ReactNode }) {
return <ConvexProvider client={convex}>{children}</ConvexProvider>;
}
5 replies
CCConvex Community
•Created by Itsacoup on 11/28/2023 in #support-community
Remix Convex Vercel
Dev environment runs great. I have chosen to use HttpClient since I struggled to set up the ReactClient in Remix with out docs and am fine with non-reactive data.
Deploying to vercel and the app builds and deploys, both Remix and Convex. Any Remix pages that don't have a loader or action calling the HttpClient render as expected. Any that do use HttpClient crash the app - however I am able to log server side the expected response from the HttpClient in the remix action... So they are talking
Currently adding more error logging to debug but the error I'm getting is
"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: First parameter has member 'readable' that is not a ReadableStream."
29 replies
CCConvex Community
•Created by Itsacoup on 10/13/2023 in #support-community
You don't have access to the project with deployment MY_PROJECT, as configured in CONVEX_DEPLOYMENT
Getting this in VSC terminal when I moved development from one machine to another. On the machine I moved too, I already had another GitHub account logged in that was attached to a separate Convex team. Even though I switched git accounts in VSC terminal still thinks I'm on the incorrect account? Anyone to log out/clear auth for the convex cli?
4 replies