Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose FFFSType and friends #809

Closed
masterkain opened this issue Jan 2, 2025 · 2 comments
Closed

expose FFFSType and friends #809

masterkain opened this issue Jan 2, 2025 · 2 comments

Comments

@masterkain
Copy link

masterkain commented Jan 2, 2025

can't import that type, can't use mount properly without insane workaround in a next.js ts project

#723

@masterkain masterkain changed the title expose FFFSType expose FFFSType and friends Jan 2, 2025
@wzulfikar
Copy link

I had similar issue (Next.js 14 with TS, @ffmpeg/ffmpeg ^0.12.15) but turns out FFFSType is already exported and this worked for me:

import { FFFSType } from "@ffmpeg/ffmpeg";

await ffmpeg.mount(FFFSType.WORKERFS, { files: [videoFile] }, inputDir);

// I was using this before and the type check would fail
await ffmpeg.mount("WORKERFS", { files: [videoFile] }, inputDir);

@masterkain
Copy link
Author

that's because #723 got merged, so thanks for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants