seamusmcaffreyS
Convex Community11mo ago
2 replies
seamusmcaffrey

Stuck in "Analyzing and deploying source code..." Phase During Convex Deployment

Hey folks -- am experiencing an issue where our Convex deployment gets stuck at the "Analyzing and deploying source code..." phase. have made several changes to fix runtime constraint issues, but the deployment still hangs. Upfront notice: I am "vibe-coding" here and using cursor to build my app → convex has been great until the past few hours where for whatever reason the prod deploy hangs forever. Details follow if there's any kind souls out there able to help!

End goal: building inbound parse from email where tokened replies get sent to / stored in convex and then ingested by UI for display in a chrome extension. Have other content stored in convex and displaying just fine. Just trying to get the webhook-token reply system working here.

Issues

Local development works fine:
   npx convex dev --once
   ✔ Schema validation complete.
   Downloading current deployment state...
   Diffing local code and deployment state
   Analyzing and deploying source code...
   ✔ 13:55:13 Convex functions ready! (3.42s)


But production deployment gets stuck (it has worked in the past, in this project):
   npx convex deploy
   ...
   Analyzing and deploying source code...
   [hangs indefinitely]


Additional details AI would have me include...
Environment:
- Node.js v18.20.7 (using nvm)
- Latest Convex packages
- macOS

Attempted to fix runtime separation issues by:
- Moving all mutation functions out of files with "use node" directives
- Creating separate files for actions (with "use node") and mutations (without "use node")
- Converting Node.js-dependent functions to proper actions that call internal mutations

Further, specifically ...
- Created emailEventsActions.ts and emailTokensActions.ts for Node.js actions
- Updated emailEventsMutations.ts and emailTokens.ts to remove "use node" directives
- Fixed emails.ts to properly use actions instead of mutations with Node.js

Any help here appreciated!
Was this page helpful?