import ffmpeg from "fluent-ffmpeg";
// or
const ffmpeg = require("fmpeg");
Expected results
Normal initialization.
Observed results
ERROR Failed to compile with 1 errors 10:10:32 PM
This relative module was not found:
* ./lib-cov/fluent-ffmpeg in ./node_modules/fluent-ffmpeg/index.js
ERROR Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Process finished with exit code 1
The above occurs despite not installing ffmpeg on my machine, and even if I do, the process.env.FLUENTFFMPEG_COV ternary should return false, but since isn't, the require('./lib/fluent-ffmpeg') won't be called and therefore the code will cause the aforementioned error to be thrown.
[ ] I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
[ ] I have included full stderr/stdout output from ffmpeg
I'm 99% certain it's not an issue with fluent-ffmpeg, but rather with Yarn, which I discovered that isn't guaranteed to always add all the files of a given module.
I filed an issue on Yarn's repository.
Version information
Code to reproduce
Expected results
Normal initialization.
Observed results
The above occurs despite not installing
ffmpeg
on my machine, and even if I do, theprocess.env.FLUENTFFMPEG_COV
ternary should return false, but since isn't, therequire('./lib/fluent-ffmpeg')
won't be called and therefore the code will cause the aforementioned error to be thrown.Checklist