how to convex-helpers?
hello team. i wonder if my setup is wrong while trying to use convex-helpers. i've been running into
tried doing webpack, ts-loader etc. but didnt get it to work. pls lemme know. thanks!
11 Replies
Howdy! where are you importing it from? I wouldn't expect it to need webpack - the goal was it'd be imported via esbuild that convex runs when uploading your functions. So I didn't generate cjs / mjs files.
Do you have an example repo I could check out to debug?
im having it under convex/db/merchant.ts. i havent been able to commit / push since it's messy :/

GitHub
GitHub - get-convex/convex-helpers: A collection of useful code to ...
A collection of useful code to complement the official packages. - GitHub - get-convex/convex-helpers: A collection of useful code to complement the official packages.
Is the error when you're bundling client code or server?
client code
Gotcha - tell me more about your client - framework / tsconfig / build script?
next.js, my tsconfig for the convex/ dir is basically the same other than i have "jsx": "react" in my tsconfig.
i commented out a bunch of stuff and now im seeing too many errors 🫠
Ok I have a repro - for now you might want to just copy the file in again, until I get bundling working with Next.js. Sorry! But the file is updated so should work 🤷♂️ - I tested copying the file in locally
np, thank you so much ian 🙂
Ok give this one a shot:
convex-helpers@0.1.3
TIL... a little more about bundlingworks now. thanks, ian! 🎉