Today I used patch-package to patch fluent-ffmpeg@2.1.2 for the project I'm working on.
Issue : Module not found: Can't resolve './lib-cov/fluent-ffmpeg' on Vercel deployment
Here is the diff that solved my problem:
Module.exports ( located in node_modules/fluent-ffmpeg ) need to be changed from :
module.exports = process.env.FLUENTFFMPEG_COV ? require('./lib-cov/fluent-ffmpeg') : require('./lib/fluent-ffmpeg');
into :
module.exports = require('./lib/fluent-ffmpeg')
Today I used patch-package to patch
fluent-ffmpeg@2.1.2
for the project I'm working on.Issue : Module not found: Can't resolve './lib-cov/fluent-ffmpeg' on Vercel deployment
Here is the diff that solved my problem:
Module.exports ( located in node_modules/fluent-ffmpeg ) need to be changed from : module.exports = process.env.FLUENTFFMPEG_COV ? require('./lib-cov/fluent-ffmpeg') : require('./lib/fluent-ffmpeg');
into : module.exports = require('./lib/fluent-ffmpeg')