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.

[💡DeprecationWarning] webpack 5 externals-function should be defined like ({context, request}, cb) => { ... }

See original GitHub issue

terminal warning

webpack is watching the files…

(node:4516) [DEP_WEBPACK_EXTERNALS_FUNCTION_PARAMETERS] DeprecationWarning: The externals-function should be defined like ({context, request}, cb) => { ... }
(Use `node --trace-deprecation ...` to show where the warning was created)

image

What I should do?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
liadycommented, Aug 24, 2020

Apparently they check the function’s signature as well. It is now fixed in v2.5.2. Thank you

0reactions
skjnldsvcommented, Nov 7, 2020

Ah, sorry I was keeping it inside the array as you mentioned before. I thought that was still the recommended way 😃 Thanks, I’ll try later 🤗

Read more comments on GitHub >

github_iconTop Results From Across the Web

Externals - webpack
The externals configuration option provides a way of excluding dependencies from the output bundles. Instead, the created bundle relies on that dependency ...
Read more >
Webpack 5 support · Issue #13341 · vercel/next.js - GitHub
Make resolutions to webpack 5 use the webpack 5 implementation ... externals-function should be defined like ({context, request}, cb) => { .
Read more >
webpack-node-externals - npm
This library creates an externals function that ignores node_modules when bundling in Webpack.
Read more >
how do i solve the deprecation warning while compiling
I've tried reading the webpack's documentation. Compilation warning message · javascript · node.js · webpack · Share.
Read more >
How can I inject Angular SSR project with webpack plugin?
... DeprecationWarning: The externals-function should be defined like ({context, request}, cb) => { ... } (Use `node --trace-deprecation .
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