Skip to content

Commit d241fb0

Browse files
Fix: Resolve TypeScript error in vite.config.ts
The commit addresses a TypeScript error in `vite.config.ts` related to the `error` variable within the `copyLovableUploadsPlugin`. The error, "error is of type 'unknown'", is resolved by adding a type guard or handling the potential unknown type appropriately to ensure type safety.
1 parent 58c323a commit d241fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const copyLovableUploadsPlugin = () => {
2929
}
3030
});
3131
} catch (error) {
32-
console.warn('Could not copy lovable-uploads to images:', error.message);
32+
console.warn('Could not copy lovable-uploads to images:', error instanceof Error ? error.message : String(error));
3333
}
3434
}
3535
};

0 commit comments

Comments
 (0)