amppA
Convex Community6mo ago
1 reply
ampp

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)

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.
Was this page helpful?