-
Notifications
You must be signed in to change notification settings - Fork 867
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
This relative module was not found: * ./lib-cov/fluent-ffmpeg in ./node_modules/fluent-ffmpeg/index.js #998
Comments
Same problem here (Electron + Vue + macOS + electron-builder). I found that fork https://github.com/pietrop/ffmpeg-static-electron that should solve this issue, but the author doesn't seem to maintain it anymore. |
I had the same issue - Electron, vue/cli and electron-builder - and here's how I solved the issue: In vue.config.js I added this to the webpack configuration in the plugins property: const webpack = require('webpack');
module.exports = {
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
'process.env.FLUENTFFMPEG_COV': false
})
]
}
} That fixed my issue. |
I tried the same thing but the Rollup approach and it's not working for me in Rollup. Can you suggest some way? Command I ran: |
@haoranisg does that fix the bundling issue, or is it just a suggestion? @max-programming - I've reached the exact same point as you, trying to bundle a node package using this library with rollup and getting this error, did you every solve this or have a workaround? |
Version information
Code to reproduce
Electron + Vue 框架,在js中引用ffmpeg。
package.json中
"electron:serve": "vue-cli-service electron:serve",
在终端执行 npm run electron:serve 提示错误
ERROR Failed to compile with 1 errors 11:10:12
This relative module was not found:
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ai-dev-platform@0.1.0 electron:serve:
vue-cli-service electron:serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ai-dev-platform@0.1.0 electron:serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/liukun/.npm/_logs/2020-04-17T03_10_12_322Z-debug.log
The terminal process terminated with exit code: 1
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
Observed results
This relative module was not found:
Checklist
The text was updated successfully, but these errors were encountered: