Skip to content

build errors #22

@lienista

Description

@lienista

weird to have global variable name with different signatures.

./app/api/convert/status/route.ts:5:7
Type error: Subsequent variable declarations must have the same type. Variable 'conversionStore' must be of type 'Record<string, { status: "success" | "cloning" | "converting" | "failed" | "idle"; logs: string[]; message?: string | undefined; result?: ConversionResult | undefined; error?: string | undefined; }>', but here has type 'Record<string, { status: "success" | "cloning" | "converting" | "failed"; logs: string[]; message?: string | undefined; }>'.

3 | // Access the global store from parent
4 | declare global {

5 | var conversionStore: Record<string, {
| ^
6 | status: 'cloning' | 'converting' | 'success' | 'failed';
7 | logs: string[];
8 | message?: string;
Next.js build worker exited with code: 1 and signal: null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions