faux-naïf
faux-naïf2w ago

Convex autogen not creating types in new repo

I previously created a node project that uses convex for its db; the project name is "splendor". i created another project that i want to use the same database for. but when i npx convex dev, the tables that are specific to this node project (but which i want to be shared within the same convex project) are not getting autogen files. why?
? What would you like to configure? choose an existing project
? Configure project splendor (splendor)? Yes
✔ Reinitialized project splendor
...

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/mellow-cassowary-971

[verbose] 2025-04-09T22:16:06.918Z Skipping convex/_generated/api.d.ts
[verbose] 2025-04-09T22:16:06.918Z Skipping convex/_generated/api.js
[verbose] 2025-04-09T22:16:06.918Z Skipping convex/_generated/dataModel.d.ts
[verbose] 2025-04-09T22:16:06.918Z Skipping convex/_generated/server.d.ts
[verbose] 2025-04-09T22:16:06.919Z Skipping convex/_generated/server.js
Codegen finished.
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/api.d.ts
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/api.js
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/dataModel.d.ts
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/server.d.ts
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/server.js
Convex's runtime modules: []
Remote config will be overwritten with the following changes:
Delete the following modules:
[-] codes.js //this and the one below are from the other project
[-] appointments.js
[-] _deps/NIWPCHIW.js // not sure what this is
? What would you like to configure? choose an existing project
? Configure project splendor (splendor)? Yes
✔ Reinitialized project splendor
...

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/mellow-cassowary-971

[verbose] 2025-04-09T22:16:06.918Z Skipping convex/_generated/api.d.ts
[verbose] 2025-04-09T22:16:06.918Z Skipping convex/_generated/api.js
[verbose] 2025-04-09T22:16:06.918Z Skipping convex/_generated/dataModel.d.ts
[verbose] 2025-04-09T22:16:06.918Z Skipping convex/_generated/server.d.ts
[verbose] 2025-04-09T22:16:06.919Z Skipping convex/_generated/server.js
Codegen finished.
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/api.d.ts
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/api.js
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/dataModel.d.ts
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/server.d.ts
[verbose] 2025-04-09T22:16:06.925Z Skipping convex/_generated/server.js
Convex's runtime modules: []
Remote config will be overwritten with the following changes:
Delete the following modules:
[-] codes.js //this and the one below are from the other project
[-] appointments.js
[-] _deps/NIWPCHIW.js // not sure what this is
4 Replies
Convex Bot
Convex Bot2w 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!
faux-naïf
faux-naïfOP2w ago
For even more context: I have a bunch of repos for each one of my customers since there's lots of customization for each. ideally though i'd like to have all of the data i generate be in the same project so i can run analytics across all of my customers. the Kapa result implied that i'd need to have a repo that just contains my convex mutations and then use the experimental ts feature to export this to my different repos. is this true? from the docs it seemed like since convex is "additive-only by default" i could define the tables i need in each repo as long as there are no collisions. what am i missing here? the alternative seems like i'd need to have a convex repo where i define my mutations and then i'd have to jointly update that repo and my application repos in order to add mutations/queries, which would be pretty inconvenient.
Jordan22
Jordan222w ago
Hi! If you’d like to share the same Convex deployment between repos, you can only have the schema and functions defined in one place. These docs should help with your use case. Let me know if you have any questions https://docs.convex.dev/production/multiple-repos
Multiple Repositories | Convex Developer Hub
Use Convex in multiple repositories
faux-naïf
faux-naïfOP2w ago
so i should indeed have 2+ repos active, "convex-db" and n application repos, writing mutations in convex-db and letting the changes propagate to the other(s)?

Did you find this page helpful?