Vue-cli-plugin-electron-builder: Unable to resolve fluent-ffmpeg

Created on 23 Nov 2018  路  3Comments  路  Source: nklayman/vue-cli-plugin-electron-builder

Describe the bug
Using this boilerplate, you cannot install fluent-ffmpeg npm module

To Reproduce
Steps to reproduce the behavior:

  • yarn add fluent-ffmpeg
  • yarn serve:electron

Screenshots
image

Environment:

  • OS and version: Win10x64
  • vue-cli-plugin-electron-builder version : v1.0.0-rc.7

Additional context

I think it's a problem with Webpack configuration.

Proposed solution can be found in this comment

Most helpful comment

That looks right. It matches the suggested solution in the other issue.

All 3 comments

You can apply the fix yourself by modifying the webpack config. See the docs for more details.

I've created vue.config.js in the same directory as the package.json and added the following code:

Does that look correct?

module.exports = {
  pluginOptions: {
    electronBuilder: {
      chainWebpackRendererProcess: config => {
        config.plugin('define').tap(args => {
          args[0]['process.env.FLUENTFFMPEG_COV'] = false
          return args
        })
      },
    }
  }
}

That looks right. It matches the suggested solution in the other issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HeiShanLaoYao889 picture HeiShanLaoYao889  路  5Comments

Timibadass picture Timibadass  路  6Comments

mrin9 picture mrin9  路  6Comments

sanch941 picture sanch941  路  6Comments

JamesDream87 picture JamesDream87  路  5Comments