fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.96k stars 881 forks source link

Issue : Module not found: Can't resolve './lib-cov/fluent-ffmpeg' on Vercel deployment #1296

Open reyys opened 3 months ago

reyys commented 3 months ago

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')