Cannot find module '@convex-dev/sharded-counter/convex.config' or its corresponding type declaration
Hi all!
I got the following lint error in my typescript project when using the sharded-counter component:
Cannot find module '@convex-dev/sharded-counter/convex.config' or its corresponding type declarations.ts(2307)
My setup is:
- Next.js with Convex and Clerk Auth
- Monorepo structure (convex files are located in its own package)
- Bun as package manager
Does anyone know how to get rid of it?2 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!
That's pretty strange. Can you search your codebase for "sharded" and see what comes up?
Guessing you have a convex/convex.config.ts that's importing that file, but not sure why that would be the case if you didn't set it up.