Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

M

Manav Rathic9d490ce2030
diff --git a/web/apps/photos/src/worker/ffmpeg.worker.ts b/web/apps/photos/src/worker/ffmpeg.worker.ts
index aa1d1437ef..408c2197c5 100644
--- a/web/apps/photos/src/worker/ffmpeg.worker.ts
+++ b/web/apps/photos/src/worker/ffmpeg.worker.ts
@@ -7,6 +7,24 @@ import {
inputPathPlaceholder,
outputPathPlaceholder,
} from "constants/ffmpeg";
+
+// When we run tsc on CI, the line below errors out
+//
+// > Error: src/worker/ffmpeg.worker.ts(10,38): error TS2307: Cannot find module
+// 'ffmpeg-wasm' or its corresponding type declarations.
+//
+// Building and running works fine. And this error does not occur when running
+// tsc locally either.
+//
+// Of course, there is some misconfiguration, but we plan to move off our old
+// fork and onto upstream ffmpeg-wasm, and the reason can be figured out then.
+// For now, disable the error to allow the CI lint to complete.
+//
+// Note that we can't use @ts-expect-error since it doesn't error out when
+// actually building!
+//
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// @ts-ignore
import { FFmpeg, createFFmpeg } from "ffmpeg-wasm";
export class DedicatedFFmpegWorker {