wilsonlewisW
Convex Communityโ€ข2d agoโ€ข
1 reply
wilsonlewis

Vite + Convex + Vercel

I am trying to build a SPA vite+react app that is built+deployed using Vercel and uses convex as a backend.

I have been trying to debug this for the last 4 hours with no luck...

My build script is:
bun convex deploy --cmd='bun --bun vite build'


But I am getting the error:

[UNRESOLVED_IMPORT] Error: Could not resolve '../convex/_generated/api' in src/router.tsx


I can't figure out if the _generated directory isn't being made, or it is maybe being generated in a different place than it does in dev?

Thanks
Was this page helpful?