Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET] DeprecationWarning: Compilation.modules was changed from Array to Set (using Array method 'filter' is deprecated) #430

Closed
dmnsgn opened this issue Jan 9, 2021 · 0 comments · Fixed by #431

Comments

@dmnsgn
Copy link
Contributor

dmnsgn commented Jan 9, 2021

Do you want to request a feature, report a bug or ask a question?

Deprecation warning

What is the current behavior?

When running with --trace-deprecation,

[DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET] DeprecationWarning: Compilation.modules was changed from Array to Set (using Array method 'filter' is deprecated)
    at Set.set.<computed> [as filter] (/Users/my-name/Projects/my-project/node_modules/webpack/lib/util/deprecation.js:85:4)
    at getAllModules (/Users/my-name/Projects/my-project/node_modules/svg-sprite-loader/lib/utils/get-all-modules.js:28:8)
    at Array.map (<anonymous>)

What is the expected behavior?

No warning

If the current behavior is a bug, please provide the steps to reproduce, at least part of webpack config with loader configuration and piece of your code.
The best way is to create repo with minimal setup to demonstrate a problem (package.json, webpack config and your code).
It you don't want to create a repository - create a gist with multiple files

If this is a feature request, what is motivation or use case for changing the behavior?

Please tell us about your environment:

  • Node.js version: v15.5.1
  • webpack version: 5.11.1
  • svg-sprite-loader version: 5.2.1
  • OS type & version: MacOS 10.15

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant