From d48991624a640e6725d4cf43ebf4e25ac7d038e4 Mon Sep 17 00:00:00 2001 From: TomasPalsson Date: Fri, 25 Sep 2026 15:18:55 +0000 Subject: [PATCH] fix(file-server): import minio Client as a value again The upstream sync (#4) turned the minio import into a type-only import, but the fork's createMinioClient still calls new Client(...). Bun strips type imports, so Client is undefined at runtime and file-server exits with 'Critical: Could not initialize storage' on every start (seen on apro-sandbox, task def code-interpreter:25). tsc reports it as TS1361 at lines 90/115/122. --- service/src/file-server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/src/file-server.ts b/service/src/file-server.ts index b42971a3..b96392f3 100644 --- a/service/src/file-server.ts +++ b/service/src/file-server.ts @@ -14,7 +14,8 @@ import express from 'express'; import { nanoid } from 'nanoid'; import { PassThrough } from 'stream'; import { pipeline } from 'stream/promises'; -import type { BucketItem, BucketItemStat, Client, ClientOptions } from 'minio'; +import { Client } from 'minio'; +import type { BucketItem, BucketItemStat, ClientOptions } from 'minio'; import type { Readable } from 'stream'; import type * as tls from 'tls'; import type * as t from './types';