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
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!
Did you add the component to convex.config.ts?
Yes
I followed this exactly: https://www.convex.dev/components/presence
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