ampp
ampp2w ago

Convex Helpers 0.1.101 -> 0.1.102 breaking changes - Cannot intersect validators

If i upgrade to 0.1.102 or 0.1.103 I cant bundle and i get:
✖ Error fetching POST https://confident-gerbil-241.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze comps/twilio.js: Uncaught Error: Cannot intersect validators with different kinds: string and union
at intersectValidators (../../../../node_modules/.pnpm/convex-helpers@0.1.103_convex@1.25.4_@clerk+clerk-react@5.40.0_react-dom@19.1.1_react@19.1.1__jod324cuwbhfdksxkphp45mmma/node_modules/convex-helpers/validators.js:160:25)
at addFieldsToValidator (../../../../node_modules/.pnpm/convex-helpers@0.1.103_convex@1.25.4_@clerk+clerk-react@5.40.0_react-dom@19.1.1_react@19.1.1__jod324cuwbhfdksxkphp45mmma/node_modules/convex-helpers/validators.js:145:13)
at customBuilder (../../../../node_modules/.pnpm/convex-helpers@0.1.103_convex@1.25.4_@clerk+clerk-react@5.40.0_react-dom@19.1.1_react@19.1.1__jod324cuwbhfdksxkphp45mmma/node_modules/convex-helpers/server/customFunctions.js:258:16)
at <anonymous> (../../convex/engine/abstractGame.ts:237:8)
✖ Error fetching POST https://confident-gerbil-241.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Failed to analyze comps/twilio.js: Uncaught Error: Cannot intersect validators with different kinds: string and union
at intersectValidators (../../../../node_modules/.pnpm/convex-helpers@0.1.103_convex@1.25.4_@clerk+clerk-react@5.40.0_react-dom@19.1.1_react@19.1.1__jod324cuwbhfdksxkphp45mmma/node_modules/convex-helpers/validators.js:160:25)
at addFieldsToValidator (../../../../node_modules/.pnpm/convex-helpers@0.1.103_convex@1.25.4_@clerk+clerk-react@5.40.0_react-dom@19.1.1_react@19.1.1__jod324cuwbhfdksxkphp45mmma/node_modules/convex-helpers/validators.js:145:13)
at customBuilder (../../../../node_modules/.pnpm/convex-helpers@0.1.103_convex@1.25.4_@clerk+clerk-react@5.40.0_react-dom@19.1.1_react@19.1.1__jod324cuwbhfdksxkphp45mmma/node_modules/convex-helpers/server/customFunctions.js:258:16)
at <anonymous> (../../convex/engine/abstractGame.ts:237:8)
Failed to analyze comps/twilio.js: i always get this error anytime a circular reference happens. so i give it very little attention as it usually has nothing to do with (../../convex/engine/abstractGame.ts:237:8) is a customCtx internalSessionMutation(), with maybe a slightly mismatched validator compared to the parent? So if i fix that i get another error somewhere else which is even harder to figure out the intersect difference? Is it possible the update is somehow more restrictive? I don't want to spend possibly hours chasing every instance down unless this is expected.
1 Reply
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!

Did you find this page helpful?