JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.01k stars 272 forks source link

[DEP_WEBPACK_MODULE_CHUNKS_ITERABLE] DeprecationWarning: Module.chunksIterable: Use new ChunkGraph API #432

Closed dmnsgn closed 3 years ago

dmnsgn commented 3 years ago

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_MODULE_CHUNKS_ITERABLE] DeprecationWarning: Module.chunksIterable: Use new ChunkGraph API
    at Function.getChunkGraphForModule (/Users/my-name/Projects/my-project/node_modules/webpack/lib/ChunkGraph.js:1361:10)
    at NormalModule.get chunksIterable [as chunksIterable] (/Users/my-name/Projects/my-project/node_modules/webpack/lib/Module.js:368:21)
    at getModuleChunk (/Users/my-name/Projects/my-project/node_modules/svg-sprite-loader/lib/utils/get-module-chunk.js:11:14)

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:

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

d3x42 commented 3 years ago

Please try svg-sprite-loader@6.0.5

dmnsgn commented 3 years ago

Warning is gone, functioning as before from initial test 👍 Thanks!