Beta deploy: vision build fails because file is Blob, not File #130

Closed
opened 2026-10-20 08:04:01 -07:00 by westfarn · 0 comments
Owner

Summary

Deploy Beta run 929 failed on master (89228719) after the vision merge. Unit tests passed. npm run build:beta failed on every host.

react-scripts build reports:

TS2345: Argument of type 'Blob | null' is not assignable to parameter of type 'File | null | undefined'.
  Type 'Blob' is missing the following properties from type 'File': lastModified, name, webkitRelativePath
AsyncDashboard2.tsx:476
  const attachedImage = isImageFile(file) ? URL.createObjectURL(file as File) : null;

PromptValues.file is Blob | null. isImageFile only accepts File. The as File cast is on createObjectURL, so it does not cover the isImageFile(file) argument. Jest does not typecheck this path, which is why unit-tests stayed green.

Acceptance

  • npm run build:beta typechecks AsyncDashboard2
  • Image attach still previews and sends
  • Document attach still shows the filename
## Summary [Deploy Beta run 929](https://git.aimloperations.com/ai_ml_operations/chat_web_app/actions/runs/929) failed on `master` (`89228719`) after the vision merge. Unit tests passed. `npm run build:beta` failed on every host. `react-scripts build` reports: ``` TS2345: Argument of type 'Blob | null' is not assignable to parameter of type 'File | null | undefined'. Type 'Blob' is missing the following properties from type 'File': lastModified, name, webkitRelativePath AsyncDashboard2.tsx:476 const attachedImage = isImageFile(file) ? URL.createObjectURL(file as File) : null; ``` `PromptValues.file` is `Blob | null`. `isImageFile` only accepts `File`. The `as File` cast is on `createObjectURL`, so it does not cover the `isImageFile(file)` argument. Jest does not typecheck this path, which is why `unit-tests` stayed green. ## Acceptance - [ ] `npm run build:beta` typechecks `AsyncDashboard2` - [ ] Image attach still previews and sends - [ ] Document attach still shows the filename
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_web_app#130