Error: q implicitly has an 'any' type, & Type instantiation is excessively deep and possibly infinit - Convex Community