anyApianyApi from convex/serverconvex/server instead of proper client-side API typesnpx convex codegennpx convex codegen command consistently generates incorrect API types in convex/_generated/api.jsconvex/_generated/api.js. Instead of generating proper client-side API types, it generates:anyApianyApi from convex/serverconvex/server is server-side code that cannot be imported in client-side contexts.npx convex dev --configure newnpx convex dev --configure newnpx convex codegennpx convex codegenconvex/_generated/api.jsconvex/_generated/api.jsapi.jsapi.js should contain proper client-side API types that can be imported and used in client applications.api.jsapi.js contains anyApianyApi imports from convex/serverconvex/server, which causes runtime crashes when imported in client-side code.Join the Discord to ask follow-up questions and connect with the community
Join the Convex Discord! Explore Convex, the backend platform that keeps your app in sync.
16,164 Members
Join