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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Deploy Beta run 929 failed on
master(89228719) after the vision merge. Unit tests passed.npm run build:betafailed on every host.react-scripts buildreports:PromptValues.fileisBlob | null.isImageFileonly acceptsFile. Theas Filecast is oncreateObjectURL, so it does not cover theisImageFile(file)argument. Jest does not typecheck this path, which is whyunit-testsstayed green.Acceptance
npm run build:betatypechecksAsyncDashboard2