question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webpack@5: Error: Module.entryModule: Multiple entry modules are not supported by the deprecated API (Use the new ChunkGroup API)

See original GitHub issue

When using license-webpack-plugin@2.1.3 with the new webpack@5.0.0-beta.7, the following error occurs:

Error: Module.entryModule: Multiple entry modules are not supported by the deprecated API (Use the new ChunkGroup API)

callstack:

Error: Module.entryModule: Multiple entry modules are not supported by the deprecated API (Use the new ChunkGroup API)
    at Chunk.get entryModule [as entryModule] (/home/node/app/node_modules/webpack/lib/Chunk.js:113:10)
    at WebpackChunkModuleIterator.iterateModules (/home/node/app/node_modules/license-webpack-plugin/dist/WebpackChunkModuleIterator.js:38:19)
    at PluginChunkReadHandler.processChunk (/home/node/app/node_modules/license-webpack-plugin/dist/PluginChunkReadHandler.js:26:29)
    at _loop_1 (/home/node/app/node_modules/license-webpack-plugin/dist/WebpackCompilerHandler.js:48:37)
    at WebpackCompilerHandler.iterateChunks (/home/node/app/node_modules/license-webpack-plugin/dist/WebpackCompilerHandler.js:71:17)
    at /home/node/app/node_modules/license-webpack-plugin/dist/WebpackCompilerHandler.js:29:27
    at Hook.eval [as callAsync] (eval at create (/home/node/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:32:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/node/app/node_modules/tapable/lib/Hook.js:18:14)
    at /home/node/app/node_modules/webpack/lib/Compilation.js:1592:37
    at Hook.eval [as callAsync] (eval at create (/home/node/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/node/app/node_modules/tapable/lib/Hook.js:18:14)
    at cont (/home/node/app/node_modules/webpack/lib/Compilation.js:1586:33)
    at /home/node/app/node_modules/webpack/lib/Compilation.js:1638:6
    at /home/node/app/node_modules/neo-async/async.js:2830:7
    at Object.each (/home/node/app/node_modules/neo-async/async.js:2850:39)
    at Compilation.createChunkAssets (/home/node/app/node_modules/webpack/lib/Compilation.js:2308:12)

my (simplified) webpack config is as follows:

{
  entry: {
    index: [
      'core-js/stable',
      'regenerator-runtime/runtime'
      'index.js'
   ],
   mode: 'production',
   target: 'web',
   plugins: [
     new LicenseWebpackPlugin(),
     ...
    ],
   ...
}

Most of the other plugins we use simply throw deprecation warnings rather than an error.

Do others have similar problems when using webpack@5? Are there any plans to test / increase compatibility with the upcoming webpack version?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
xz64commented, Nov 22, 2019

I plan to fix the deprecation errors

0reactions
xz64commented, Dec 23, 2020

Fixed in v2.3.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack 5 ChunkGroup API with multiple entries?
My issue was that I was using "webpack-fix-style-only-entries" but it is not compatible with Webpack 5.
Read more >
Webpack 5 release (2020-10-10)
Webpack 5 adds a new feature called "Module Federation", which allows multiple webpack builds to work together. From runtime perspective modules ...
Read more >
use new chunkgraph api - You.com | The AI Search Engine ...
I deleted node modules and reinstalled, cleaned up the code, checked folder structure. Nothing seems to work. I don´t have a clue of...
Read more >
An in-depth perspective on webpack's bundling process
Conceptually, a module in webpack is associated with a file. So, in the diagram 'a.js' will result in a new module and so...
Read more >
webpack/types.d.ts - UNPKG
webpack /types.d.ts ; 298, /** ; 299, * Specifies the filename template of output files on disk. You must **not** specify an absolute...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found