Suscription and Help

saintvisionai@Ryans-Mac-mini saintvisionai-saintsal-hacp-final % npm run typecheck

saintsal-ai-platform@1.0.0 typecheck
tsc

client/components/builder/builder-registry.ts:13:9 - error TS2576: Property ‘registerComponent’ does not exist on type ‘Builder’. Did you mean to access the static member ‘Builder.registerComponent’ instead?

13 builder.registerComponent(SaintSalHero, {
~~~~~~~~~~~~~~~~~

client/components/builder/builder-registry.ts:79:9 - error TS2576: Property ‘registerComponent’ does not exist on type ‘Builder’. Did you mean to access the static member ‘Builder.registerComponent’ instead?

79 builder.registerComponent(SaintSalFeatures, {
~~~~~~~~~~~~~~~~~

client/components/builder/builder-registry.ts:131:9 - error TS2576: Property ‘registerComponent’ does not exist on type ‘Builder’. Did you mean to access the static member ‘Builder.registerComponent’ instead?

131 builder.registerComponent(SaintSalCTA, {
~~~~~~~~~~~~~~~~~

client/components/builder/builder-registry.ts:168:9 - error TS2576: Property ‘registerComponent’ does not exist on type ‘Builder’. Did you mean to access the static member ‘Builder.registerComponent’ instead?

168 builder.registerComponent(SaintSalStats, {
~~~~~~~~~~~~~~~~~

client/components/builder/builder-registry.ts:224:9 - error TS2576: Property ‘registerComponent’ does not exist on type ‘Builder’. Did you mean to access the static member ‘Builder.registerComponent’ instead?

224 builder.registerComponent(SaintSalTestimonial, {
~~~~~~~~~~~~~~~~~

client/components/builder/builder-registry.ts:286:9 - error TS2576: Property ‘register’ does not exist on type ‘Builder’. Did you mean to access the static member ‘Builder.register’ instead?

286 builder.register(“editor.settings”, {
~~~~~~~~

client/components/BuilderPage.tsx:33:13 - error TS2353: Object literal may only specify known properties, and ‘previewMode’ does not exist in type ‘GetContentOptions & { req?: IncomingMessage; res?: ServerResponse; apiKey?: string; authToken?: string; }’.

33 previewMode: isPreviewingInBuilder,
~~~~~~~~~~~

client/components/ProtectedRoute.tsx:6:13 - error TS2503: Cannot find namespace ‘React’.

6 children: React.ReactNode;
~~~~~

client/components/ProtectedRoute.tsx:10:23 - error TS2503: Cannot find namespace ‘React’.

10 const ProtectedRoute: React.FC = ({
~~~~~

client/components/ui/badge.tsx:30:18 - error TS2339: Property ‘className’ does not exist on type ‘BadgeProps’.

30 function Badge({ className, variant, …props }: BadgeProps) {
~~~~~~~~~

client/components/ui/resizable.tsx:9:4 - error TS2503: Cannot find namespace ‘React’.

9 }: React.ComponentProps) => (
~~~~~

client/components/ui/resizable.tsx:25:4 - error TS2503: Cannot find namespace ‘React’.

25 }: React.ComponentProps & {
~~~~~

client/components/ui/sheet.tsx:62:37 - error TS2322: Type ‘string’ is not assignable to type ‘“bottom” | “top” | “left” | “right”’.

62 className={cn(sheetVariants({ side }), className)}
~~~~

client/components/ui/sheet.tsx:35:7
35 side: {
~~~~~~~
36 top: “inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

41 “inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42 },
~~~~~~~
The expected type comes from property ‘side’ which is declared here on type ‘ConfigVariants<{ side: { top: string; bottom: string; left: string; right: string; }; }> & ClassProp’

client/components/ui/sidebar.tsx:571:51 - error TS2322: Type ‘string’ is not assignable to type ‘“default” | “outline”’.

571 className={cn(sidebarMenuButtonVariants({ variant, size }), className)}
~~~~~~~

client/components/ui/sidebar.tsx:524:7
524 variant: {
~~~~~~~~~~
525 default: “hover:bg-sidebar-accent hover:text-sidebar-accent-foreground”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

527 “bg-background shadow-[0_0_0_1px_hsl(var(–sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(–sidebar-accent))]”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
528 },
~~~~~~~
The expected type comes from property ‘variant’ which is declared here on type ‘ConfigVariants<{ variant: { default: string; outline: string; }; size: { default: string; sm: string; lg: string; }; }> & ClassProp’

client/components/ui/sidebar.tsx:571:60 - error TS2322: Type ‘string’ is not assignable to type ‘“default” | “sm” | “lg”’.

571 className={cn(sidebarMenuButtonVariants({ variant, size }), className)}
~~~~

client/components/ui/sidebar.tsx:529:7
529 size: {
~~~~~~~
530 default: “h-8 text-sm”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

532 lg: “h-12 text-sm group-data-[collapsible=icon]:!p-0”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
533 },
~~~~~~~
The expected type comes from property ‘size’ which is declared here on type ‘ConfigVariants<{ variant: { default: string; outline: string; }; size: { default: string; sm: string; lg: string; }; }> & ClassProp’

client/components/ui/skeleton.tsx:6:4 - error TS2503: Cannot find namespace ‘React’.

6 }: React.HTMLAttributes) {
~~~~~

client/components/ui/sonner.tsx:4:21 - error TS2503: Cannot find namespace ‘React’.

4 type ToasterProps = React.ComponentProps;
~~~~~

client/lib/builder.ts:16:9 - error TS2576: Property ‘set’ does not exist on type ‘Builder’. Did you mean to access the static member ‘Builder.set’ instead?

16 builder.set(“previewUrl”, window.location.origin);
~~~

client/lib/builder.ts:17:9 - error TS2576: Property ‘set’ does not exist on type ‘Builder’. Did you mean to access the static member ‘Builder.set’ instead?

17 builder.set(“liveSync”, true);
~~~

client/lib/conversations.ts:216:32 - error TS2339: Property ‘azure’ does not exist on type ‘{ companion: ChatResponse; saintsal: ChatResponse; }’.

216 aiResponse = responses.azure;
~~~~~

client/lib/conversations.ts:220:11 - error TS2345: Argument of type ‘“gpt-4o” | “azure-gpt-4o”’ is not assignable to parameter of type ‘“companion” | “saintsal-4o” | “saintsal-turbo”’.
Type ‘“gpt-4o”’ is not assignable to type ‘“companion” | “saintsal-4o” | “saintsal-turbo”’.

220 conversation.ai_model as “azure-gpt-4o” | “gpt-4o”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

client/lib/conversations.ts:226:11 - error TS2345: Argument of type ‘“gpt-4o” | “azure-gpt-4o”’ is not assignable to parameter of type ‘“companion” | “saintsal-4o” | “saintsal-turbo”’.
Type ‘“gpt-4o”’ is not assignable to type ‘“companion” | “saintsal-4o” | “saintsal-turbo”’.

226 conversation.ai_model as “azure-gpt-4o” | “gpt-4o”,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

client/lib/upstash.ts:58:7 - error TS2322: Type ‘{ id: string | number; metadata: { userId: string; conversationId: string; content: string; timestamp: string; model: string; }; vector: number; }’ is not assignable to type ‘VectorData’.
Type ‘{ id: string | number; metadata: VectorData[“metadata”]; vector: number; }’ is not assignable to type ‘VectorData’.
Types of property ‘id’ are incompatible.
Type ‘string | number’ is not assignable to type ‘string’.
Type ‘number’ is not assignable to type ‘string’.

58 return results.map((result) => ({
~~~~~~

client/lib/upstash.ts:83:7 - error TS2322: Type ‘{ id: string | number; metadata: { userId: string; conversationId: string; content: string; timestamp: string; model: string; }; vector: number; }’ is not assignable to type ‘VectorData’.
Type ‘{ id: string | number; metadata: VectorData[“metadata”]; vector: number; }’ is not assignable to type ‘VectorData’.
Types of property ‘id’ are incompatible.
Type ‘string | number’ is not assignable to type ‘string’.
Type ‘number’ is not assignable to type ‘string’.

83 return results.map((result) => ({
~~~~~~

client/pages/Console.tsx:199:22 - error TS2304: Cannot find name ‘streamingMessageId’.

199 msg.id === streamingMessageId
~~~~~~~~~~~~~~~~~~

client/pages/Console.tsx:272:16 - error TS2322: Type ‘{ children: any; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

272
~~~~~

client/pages/Console.tsx:352:24 - error TS2322: Type ‘{ children: any; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

352 <Badge
~~~~~

client/pages/Console.tsx:458:26 - error TS2322: Type ‘{ children: string; variant: “secondary”; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

458 23
~~~~~

client/pages/Console.tsx:462:26 - error TS2322: Type ‘{ children: string; variant: “outline”; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

462 8
~~~~~

client/pages/Console.tsx:466:26 - error TS2322: Type ‘{ children: string; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

466
~~~~~

client/pages/Console.tsx:482:26 - error TS2322: Type ‘{ children: string; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

482
~~~~~

client/pages/Console.tsx:488:26 - error TS2322: Type ‘{ children: string; variant: “outline”; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

488 Ready
~~~~~

client/pages/Console.tsx:492:26 - error TS2322: Type ‘{ children: string; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

492
~~~~~

client/pages/CRM.tsx:57:20 - error TS2322: Type ‘{ children: any; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

57 <Badge
~~~~~

client/pages/CRM.tsx:64:20 - error TS2322: Type ‘{ children: any; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

64 <Badge
~~~~~

client/pages/CRM.tsx:171:20 - error TS2322: Type ‘{ children: string; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

171 <Badge
~~~~~

client/pages/Dashboard.tsx:95:20 - error TS2322: Type ‘{ children: string; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

95 AI
~~~~~

client/pages/Dashboard.tsx:108:20 - error TS2322: Type ‘{ children: string; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

108 CRM
~~~~~

client/pages/Dashboard.tsx:121:20 - error TS2322: Type ‘{ children: string; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

121 REV
~~~~~

client/pages/Dashboard.tsx:134:20 - error TS2322: Type ‘{ children: string; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

134 ELITE
~~~~~

client/pages/HACP.tsx:45:12 - error TS2322: Type ‘{ children: any; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

45 <Badge
~~~~~

client/pages/IndexWithBuilder.tsx:23:13 - error TS2353: Object literal may only specify known properties, and ‘previewMode’ does not exist in type ‘GetContentOptions & { req?: IncomingMessage; res?: ServerResponse; apiKey?: string; authToken?: string; }’.

23 previewMode: isPreviewingInBuilder,
~~~~~~~~~~~

client/pages/Login.tsx:33:34 - error TS2503: Cannot find namespace ‘React’.

33 const handleSubmit = async (e: React.FormEvent) => {
~~~~~

client/pages/Pricing.tsx:187:12 - error TS2322: Type ‘{ children: any; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

187 <Badge
~~~~~

client/pages/Pricing.tsx:222:14 - error TS2322: Type ‘{ children: string; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

222 <Badge
~~~~~

client/pages/Pricing.tsx:248:20 - error TS2322: Type ‘{ children: string; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

248 {tier.badge}
~~~~~

client/pages/Privacy.tsx:37:12 - error TS2322: Type ‘{ children: any; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

37 <Badge
~~~~~

client/pages/Terms.tsx:37:12 - error TS2322: Type ‘{ children: any; variant: “outline”; className: string; }’ is not assignable to type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.
Property ‘children’ does not exist on type ‘VariantProps<(props?: ConfigVariants<{ variant: { default: string; secondary: string; destructive: string; outline: string; }; }> & ClassProp) => string>’.

37 <Badge
~~~~~

server/api/stripe.ts:9:7 - error TS2322: Type ‘“2024-10-28.acacia”’ is not assignable to type ‘“2024-06-20”’.

9 apiVersion: “2024-10-28.acacia”,
~~~~~~~~~~

node_modules/stripe/types/lib.d.ts:47:7
47 apiVersion?: LatestApiVersion;
~~~~~~~~~~
The expected type comes from property ‘apiVersion’ which is declared here on type ‘StripeConfig’

Found 49 errors in 22 files.

Errors Files
6 client/components/builder/builder-registry.ts:13
1 client/components/BuilderPage.tsx:33
2 client/components/ProtectedRoute.tsx:6
1 client/components/ui/badge.tsx:30
2 client/components/ui/resizable.tsx:9
1 client/components/ui/sheet.tsx:62
2 client/components/ui/sidebar.tsx:571
1 client/components/ui/skeleton.tsx:6
1 client/components/ui/sonner.tsx:4
2 client/lib/builder.ts:16
3 client/lib/conversations.ts:216
2 client/lib/upstash.ts:58
9 client/pages/Console.tsx:199
3 client/pages/CRM.tsx:57
4 client/pages/Dashboard.tsx:95
1 client/pages/HACP.tsx:45
1 client/pages/IndexWithBuilder.tsx:23
1 client/pages/Login.tsx:33
3 client/pages/Pricing.tsx:187
1 client/pages/Privacy.tsx:37
1 client/pages/Terms.tsx:37
1 server/api/stripe.ts:9
saintvisionai@Ryans-Mac-mini saintvisionai-saintsal-hacp-final %
its stating i have no credits and updated to two users logged in there it showsd i have 400 plus ai usage left and nothing is working even paid 1000 ai usage for secind user . help please

Hi @Saint-Visions,

Thank you for reaching out.

I’ve looked into your space and can confirm that the credits are available. To assist you further, could you please share more details about the issue? If possible, kindly provide the project link where you’re experiencing the problem.

Looking forward to your response.

Best regards,