Search code examples
javascriptfluent-ffmpeg

I want to use fluent-ffmpeg module


I want to ask about video convert in JS. I chose the fluent-ffmpeg module to do that.

But, when I imported that in JS file, something happen like the picture below:

fluent-ffmpeg import hints

So, I went in package.json file, and this module exists in file:

content of package.json

What's the problem in this case? I guess it is problem about version, but what do I have to check first?


Solution

  • Your package.json is correct the thing you need to do is add @types/fluent-ffmpeg to your dev dependencies to get hinting ! https://www.npmjs.com/package/@types/fluent-ffmpeg

    npm i --save-dev @types/fluent-ffmpeg