indi
indi2mo ago

Attempting to use the present component

Thanks for an awesome product. I've been migrating everything away from Supabase over the last week and am much happier with performance and workflow. I'm now trying to use presence as outlined in the docs, but when I attempt to import the component with: import { components } from "./_generated/api";, I get the error Module '"./_generated/api"' has no exported member 'components'.ts(2305). Any advice on how I can continue?
5 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
ampp
ampp2mo ago
Did you add the component to convex.config.ts?
indi
indiOP2mo ago
Yes
indi
indiOP2mo ago
Convex
Presence
Track user presence in real-time.
ampp
ampp2mo ago
the only real way way it wont generate then if there is a error in the code etc, npx convex dev, you should get a message when components are added successfully

Did you find this page helpful?