RJR
Convex Communityβ€’3y agoβ€’
7 replies
RJ

Type error during 0.17 upgrade

I'm currently upgrading to 0.17, and am seeing the following error whenever I try to alter my Convex functions to use the new reference strategy:

typescript: Argument of type '{ default: FunctionReference<"query", "internal", {}, { _id: Id<"migrations">; _creationTime: number; number: number; }[]>; }' is not assignable to parameter of type 'FunctionReference<"query", "internal" | "public">'.
  Type '{ default: FunctionReference<"query", "internal", {}, { _id: Id<"migrations">; _creationTime: number; number: number; }[]>; }' is missing the following properties from type 'FunctionReference<"query", "internal" | "public">': _type, _visibility, _args, _returnType [2345]


Happy to provide more info as helpful, but any clue what might be going on?
Was this page helpful?