Skip to content

Unable to create generate a WAR file after upgrading to Webpack 5 #14

Description

@stertheweb

I am unable to generate a WAR file with this plugin after upgrading to Webpack 5. The specific error I get is:

Generating minified bundle. This will take a moment...
Error:  TypeError: compiler.plugin is not a function
    at WebpackWarPlugin.apply (C:\UnitySuiteFrontEnd\node_modules\webpack-war-plugin\src\WebpackWarPlugin.ts:38:14)
    at createCompiler (C:\UnitySuiteFrontEnd\node_modules\webpack\lib\webpack.js:73:12)
    at create (C:\UnitySuiteFrontEnd\node_modules\webpack\lib\webpack.js:134:16)
    at webpack (C:\UnitySuiteFrontEnd\node_modules\webpack\lib\webpack.js:142:47)
    at f (C:\UnitySuiteFrontEnd\node_modules\webpack\lib\index.js:63:16)
    at Object.<anonymous> (C:\UnitySuiteFrontEnd\tools\/build.js:12:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Module._compile (C:\UnitySuiteFrontEnd\node_modules\pirates\lib\index.js:136:24)
    at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

Webpack 5 does not support compiler.plugin for any function. Is there any way that this package could be updated?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions