Skip to content

Module '"@ffmpeg/ffmpeg"' has no exported member 'FFmpeg' #860

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

Open
tayloraucoin opened this issue Apr 5, 2025 · 3 comments
Open

Module '"@ffmpeg/ffmpeg"' has no exported member 'FFmpeg' #860

tayloraucoin opened this issue Apr 5, 2025 · 3 comments

Comments

@tayloraucoin
Copy link

Describe the bug
Module '"@ffmpeg/ffmpeg"' has no exported member 'FFmpeg' after installing the base package.

To Reproduce
Simple next.js v15 codebase

Expected behavior
Import works like the documentation shows it.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Sonoma 14.7.1
  • Browser Chome Version 134.0.6998.89

Additional context
Using Cursor/VSCode

@AntonPolyakin
Copy link

AntonPolyakin commented Apr 8, 2025

I have about the same thing.

import { FFmpeg } from '@ffmpeg/ffmpeg/dist/esm/classes';
^
Module not found: Error: Package path ./dist/esm/classes is not exported from package

I'm always so lucky - didn't touch the package for years, decided to update it, and boom

"@ffmpeg/core": "0.12.10",
"@ffmpeg/ffmpeg": "0.12.15",

@AntonPolyakin
Copy link

AntonPolyakin commented Apr 8, 2025

I understood my problem, in the current version they restricted access to internal package files via package.json, I didn't know it was even possible. I thought I could get any object if it was exported from a file.
My problem is solved by a normal export:
import { FFmpeg } from "@ffmpeg/ffmpeg";

But I still think this is a bug. If not, what is the point of dist folder if I can't export anything from it? Plus, the current import references the ESM version of the library. And I need the UMD version of the library because otherwise I get a warning:
#522 (comment)

@Otien0
Copy link

Otien0 commented Apr 12, 2025

Try this version:

npm install @ffmpeg/[email protected] --save-exact

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

3 participants