-
Notifications
You must be signed in to change notification settings - Fork 38
build errors #22
Description
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