Open Eli-Black-Work opened 3 years ago
I ran into this issue during a webpack upgrade and resolved it by adding an empty options
object to my loader:
{
test: /\.svg$/,
loader: 'svg-sprite-loader',
exclude: /src\/images\/mdi_icons/,
include: [/images/],
// Added this line below:
options: {},
},
@LoganBarnett That fixed it! Thank you so much! 🙂
Do you think this is something that svg-sprite-loader
should handle, or do you think it's a webpack bug?
@Bosch-Eli-Black glad it helped! Given that the stack you posted is within the loader itself, I would think svg-sprite-loader
probably should address the issue. That said I'm not 100% certain how the two interplay :)
@LoganBarnett Sounds good. Thanks again 🙂
I think this got fixed at some point, as I'm no longer seeing this issue when using the following versions:
svg-sprite-loader
6.0.5webpack
5.31.2webpack-cli
4.6.0🙂
Never mind, just ran into this again.
Do you want to request a feature, report a bug or ask a question? Bug
What is the current behavior?
Our project uses
svg-sprite-loader
5.1.1,webpack
5.10.1, andwebpack-cli
4.2.0When compiling the project, I get the below error:
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.
webpack.config:
Build command: