sonandmjy
sonandmjy20h ago

Hitting error "found wrong number of app bundles" in dev CLI

Hi there! I am hitting an error in which whenever I add a convex.config.ts file to install components, I get a "found wrong number of app bundles" in the CLI. I have tried searching the docs and github but haven't managed to find anything. This is pretty much all that is in my convex.config.ts file right now. I am using remix in the same repo if that is of any significance. Any help would be appreciated! 😀 Thank you
import { defineApp } from "convex/server";

const app = defineApp();
export default app;
import { defineApp } from "convex/server";

const app = defineApp();
export default app;
9 Replies
Convex Bot
Convex Bot20h 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!
sonandmjy
sonandmjyOP15h ago
FYI to anyone coming across this issue, it was because of node version. I was using node v23.0.0, it worked once i switched to v20.18.0 🤷‍♂️
erquhart
erquhart13h ago
Thanks for circling back!
ballingt
ballingt7h ago
Great to know we have a Node.js 23 incompatibility! We'll follow up here when fixed.
erquhart
erquhart7h ago
I ran node 23.0 once for something else and ran into a different issue, but not this same issue. @sonandmjy curious if using node v23 latest still has this behavior?
ballingt
ballingt6h ago
I haven't tried to repro yet, yeah if there's anything extra required please let us know
sonandmjy
sonandmjyOP4h ago
no worries, happy to share findings! @erquhart I did a quick test on 23.5.0 and it seems to start up fine, not sure what happened in 23.0.0 that caused it to break 🤔
erquhart
erquhart4h ago
yeah there are other weird things that broke somewhere mid 22.x and fixed mid 23.x I believe all around imports too
sonandmjy
sonandmjyOP4h ago
No description