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 Deprecation Warning: SingleEntryPlugin was renamed to EntryPlugin

See original GitHub issue

I am getting this warning since using webpack 5

Library Affected:

  • workbox-webpack-plugin version 5.1.4

How to reproduce:

  • webpack 5.4.0
  • webpack-cli 4.2.0

NODE_OPTIONS='--trace-warnings' webpack --config webpack.config.js

Output:

(node:4157) [DEP_WEBPACK_SINGLE_ENTRY_PLUGIN] DeprecationWarning: SingleEntryPlugin was renamed to EntryPlugin
    at get SingleEntryPlugin (/home/vito/Development/MyProject/node_modules/webpack/lib/index.js:246:4)
    at Function.SingleEntryPlugin (/home/vito/Development/MyProject/node_modules/webpack/lib/util/memorize.js:22:13)
    at Object.<anonymous> (/home/vito/Development/MyProject/node_modules/workbox-webpack-plugin/build/inject-manifest.js:15:3)
    at Module._compile (/home/vito/Development/MyProject/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (/home/vito/Development/MyProject/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/home/vito/Development/MyProject/node_modules/workbox-webpack-plugin/build/index.js:12:24)
    at Module._compile (/home/vito/Development/MyProject/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (/home/vito/Development/MyProject/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jeffposnickcommented, Nov 11, 2020

Please update to workbox-webpack-plugin v6.0.0-alpha.3, and let us know how it works for you.

That’s the version that introduced webpack v5.x support.

Learn more at https://github.com/GoogleChrome/workbox/releases/tag/v6.0.0-alpha.3

0reactions
jhvissottocommented, Feb 4, 2021

Same problem here!

Read more comments on GitHub >

github_iconTop Results From Across the Web

singleentryplugin was renamed to entryplugin ...
webpack 4 is using a new plugin system and deprecates the previous APIs. ... Webpack 5 Deprecation Warning: SingleEntryPlugin was renamed to EntryPlugin....
Read more >
webpack
(node:32539) [DEP_WEBPACK_SINGLE_ENTRY_PLUGIN] DeprecationWarning: SingleEntryPlugin was renamed to EntryPlugin (Use node ...
Read more >
Webpack 5 and XDN - Layer0 Q&A
node:75752) [DEP_WEBPACK_SINGLE_ENTRY_PLUGIN] DeprecationWarning: SingleEntryPlugin was renamed to EntryPlugin info - Creating an optimized ...
Read more >
Webpack 5 release (2020-10-10)
Syntax deprecated. require.include has been deprecated and will emit a warning by default when used. Behavior can be changed with Rule ...
Read more >
Top 5 Changes in webpack v5
Well, version 5 of webpack with some surprising changes. From deprecated features to new configuration options, you'll want to prepare your ...
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