这是indexloc提供的服务,不要输入任何密码
Skip to content

容器部署失败 #15

@xqyi

Description

@xqyi

系统环境:
Ubuntu Server 24.04 + Podman 4.9.3 + Podman-compose 1.5.0

操作:
直接用Git 拉取代码库,用 podman-compose up -d 启动容器(在 Ubuntu 安装有VPN服务,并设置有全局代理,确保能连接外网),所有镜像能正确下载,但运行出现以下错误无法继续(部分日志):

......
src/hooks/useWebSocket.ts(157,7): error TS2322: Type '((message: WebSocketEventMessage) => void) | undefined' is not assignable to type '((message: WebSocketEventMessage) => void) | null'.
Type 'undefined' is not assignable to type '((message: WebSocketEventMessage) => void) | null'.
src/hooks/useWebSocket.ts(158,7): error TS2322: Type '(() => void) | undefined' is not assignable to type '(() => void) | null'.
Type 'undefined' is not assignable to type '(() => void) | null'.
src/hooks/useWebSocket.ts(159,7): error TS2322: Type '(() => void) | undefined' is not assignable to type '(() => void) | null'.
Type 'undefined' is not assignable to type '(() => void) | null'.
src/hooks/useWebSocket.ts(160,7): error TS2322: Type '((error: Event) => void) | undefined' is not assignable to type '((error: Event) => void) | null'.
Type 'undefined' is not assignable to type '((error: Event) => void) | null'.
src/hooks/useWebSocket.ts(189,15): error TS2367: This comparison appears to be unintentional because the types '"task_update" | "project_update" | "system_notification" | "error_notification" | "task_progress_update"' and '"pong"' have no overlap.
src/main.tsx(1,1): error TS6133: 'React' is declared but its value is never read.
src/pages/HomePage.tsx(131,9): error TS6133: 'handleStartProcessing' is declared but its value is never read.
src/pages/HomePage.tsx(255,63): error TS6133: 'projectId' is declared but its value is never read.
src/pages/HomePage.tsx(262,55): error TS6133: 'projectId' is declared but its value is never read.
src/pages/ProcessingPage.tsx(207,27): error TS2367: This comparison appears to be unintentional because the types '"processing"' and '"completed"' have no overlap.
src/pages/ProcessingPage.tsx(223,25): error TS2367: This comparison appears to be unintentional because the types '"processing"' and '"error"' have no overlap.
src/pages/ProgressTestPage.tsx(7,30): error TS6133: 'StopOutlined' is declared but its value is never read.
src/pages/ProjectDetailPage.tsx(20,27): error TS6133: 'Project' is declared but its value is never read.
src/pages/SettingsPage.tsx(189,53): error TS2322: Type '{ children: string; color: string; size: string; }' is not assignable to type 'IntrinsicAttributes & TagProps & RefAttributes'.
Property 'size' does not exist on type 'IntrinsicAttributes & TagProps & RefAttributes'.
src/pages/SettingsPage.tsx(225,24): error TS2352: Conversion of type 'Omit<DefaultOptionType, "children">[] | undefined' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type 'Omit<DefaultOptionType, "children">[]' is not comparable to type 'string'.
src/pages/SettingsPage.tsx(232,32): error TS2322: Type '{ children: any[]; size: string; }' is not assignable to type 'IntrinsicAttributes & TagProps & RefAttributes'.
Property 'size' does not exist on type 'IntrinsicAttributes & TagProps & RefAttributes'.
src/pages/SimpleProgressDemo.tsx(5,27): error TS6133: 'useEffect' is declared but its value is never read.
src/pages/SimpleProgressDemo.tsx(24,10): error TS6133: 'SimpleProgressBar' is declared but its value is never read.
src/pages/SimpleProgressDemo.tsx(180,18): error TS2304: Cannot find name 'Tag'.
src/pages/SimpleProgressDemo.tsx(182,19): error TS2304: Cannot find name 'Tag'.
src/pages/SimpleProgressDemo.tsx(188,18): error TS2304: Cannot find name 'Tag'.
src/pages/SimpleProgressDemo.tsx(190,19): error TS2304: Cannot find name 'Tag'.
src/pages/UploadStatusPage.tsx(175,31): error TS6133: 'record' is declared but its value is never read.
src/pages/UploadStatusPage.tsx(246,16): error TS7006: Parameter '_' implicitly has an 'any' type.
src/services/api.ts(323,18): error TS2339: Property 'metadata' does not exist on type '{ id?: string | undefined; collection_title?: string | undefined; collection_summary?: string | undefined; clip_ids?: string[] | undefined; collection_type?: string | undefined; created_at?: string | undefined; project_id?: string | undefined; thumbnail_path?: string | undefined; }'.
src/stores/useSimpleProgressStore.ts(36,14): error TS2503: Cannot find namespace 'NodeJS'.
Error: building at STEP "RUN npm run build": while running runtime: exit status 2
Error: building at STEP "RUN npm run build": while running runtime: exit status 2
Error: building at STEP "RUN npm run build": while running runtime: exit status 2
Error: building at STEP "RUN npm run build": while running runtime: exit status 2
ERROR:podman_compose:Build command failed

未确定是 Docker 和 Podman 兼容问题还是包本身问题,仅供参考!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions