[💡DeprecationWarning] webpack 5 externals-function should be defined like ({context, request}, cb) => { ... }
See original GitHub issueterminal 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)
What I should do?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Apparently they check the function’s signature as well. It is now fixed in v2.5.2. Thank you
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 🤗