thewb
CCConvex Community
•Created by thewb on 2/11/2025 in #show-and-tell
🚀 Introducing Scoutly – A Smarter Way to Hire! 🚀

3 replies
CCConvex Community
•Created by thewb on 2/11/2025 in #show-and-tell
🚀 Introducing Scoutly – A Smarter Way to Hire! 🚀

3 replies
CCConvex Community
•Created by thewb on 2/3/2025 in #support-community
Dynamic require of "stream" is not supported
Ok fixed it by changing to
const response = await fetch(
${process.env.NEXT_PUBLIC_CONVEX_URL}/api/query?path=users:getUserByClerkId
,
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
args: { clerkId: userId },
}),
}
);8 replies
CCConvex Community
•Created by thewb on 2/3/2025 in #support-community
Dynamic require of "stream" is not supported
Anybody? 🙏🏻
8 replies
CCConvex Community
•Created by thewb on 2/3/2025 in #support-community
Dynamic require of "stream" is not supported
eval
nodemodules.pnpm\convex@1.18.2@clerk+clerk-react@5.22.8_react-dom@18.3.1_react@18.3.1react@18.3.1react-do_a6pe3624vgfhu2tivlhxgo7czi\node_modules\convex\dist\esm\browser\simple_client-node.js (12:1)
../common/temp/node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js
nodemodules.pnpm\convex@1.18.2@clerk+clerk-react@5.22.8_react-dom@18.3.1_react@18.3.1react@18.3.1react-do_a6pe3624vgfhu2tivlhxgo7czi\node_modules\convex\dist\esm\browser\simple_client-node.js (38:20)
8 replies
CCConvex Community
•Created by thewb on 2/3/2025 in #support-community
Dynamic require of "stream" is not supported
Call stack
8 replies
CCConvex Community
•Created by thewb on 2/3/2025 in #support-community
Dynamic require of "stream" is not supported
Also tried with import { ConvexClient } from "convex/browser";
8 replies
CCConvex Community
•Created by thewb on 2/3/2025 in #support-community
Dynamic require of "stream" is not supported
import { headers } from "next/headers";
import Stripe from "stripe";
import { ConvexHttpClient } from "convex/browser";
import { stripe } from "@/lib/stripe";
import { env } from "process";
import { api } from "../../../../../convex/_generated/api";
const convex = new ConvexHttpClient(process.env.NEXT_PUBLIC_CONVEX_URL!);
export async function POST(req: Request) {
const body = await req.text();
const signature = headers().get("Stripe-Signature") as string;
if (!env.STRIPE_WEBHOOK_SECRET) {
return new Response("Missing STRIPE_WEBHOOK_SECRET", { status: 500 });
}
let event: Stripe.Event;
8 replies