codepunkt / webpack-license-plugin

Manage third-party license compliance in your webpack build
MIT License
90 stars 17 forks source link

Error when using electron-forge #1093

Open fmense opened 1 day ago

fmense commented 1 day ago

Hi,

I'm using webpack-license-plugin with electron-forge. Since the update to 4.3.0 I'm experiencing the following error:

ERROR in WebpackLicensePlugin: Found licenses after license files were already created. If you see this message, you ran into an edge case we thought would not happen. Please open an isssue at https://github.com/codepunkt/webpack-license-plugin/issues with details of your webpack configuration so we can invastigate it further. compiler: undefined, isChild: false compiler: HtmlWebpackCompiler, isChild: true compiler: undefined, isChild: false

The previous versions of webpack-license-plugin worked fine.

How to reproduce:

  1. Create an electron-forge project (npm init electron-app@latest my-app -- --template=webpack-typescript)
  2. Install webpack-license-plugin
  3. Add webpack-license-plugin to webpack.plugins.ts
  4. Run npm run package

Thank you in advance for your help :)

codepunkt commented 8 hours ago

So 4.2.3 works in that setup, and all versions since are broken?

fmense commented 7 hours ago

I just retested with the patch versions of 4.2.x 4.2.0 -> working 4.2.1 and up -> broken

The error seems to be related to the changes introduced in #619