diff --git a/src/services/youtubeExtractor.ts b/src/services/youtubeExtractor.ts index 393876cf8..8e34d879b 100644 --- a/src/services/youtubeExtractor.ts +++ b/src/services/youtubeExtractor.ts @@ -265,8 +265,8 @@ async function writeDashManifestToFile( durationSeconds?: number ): Promise { try { - // Lazy import to keep this module usable in non-RN environments (e.g. tests) - const FileSystem = await import('expo-file-system'); + // Use the same import path as the rest of the project + const FileSystem = await import('expo-file-system/legacy'); const cacheDir = FileSystem.cacheDirectory; if (!cacheDir) return null;