Closed neurocmd closed 3 years ago
Hello! Any fix for this issue?
Please merge this pull request https://github.com/JetBrains/svg-sprite-loader/pull/403
i became to use @svgr/webpack https://www.npmjs.com/package/@svgr/webpack
@Krasnopir I need runtime sprite injection (https://github.com/JetBrains/svg-sprite-loader#runtime-configuration) As I understand it, @svgr/webpack does not support this mode
@DiFuks I agree. Not suitable for all cases. For some projects, it is impossible migrate, so those projects stay on 4 webpack. But this is a good alternative for that projects where you can use embed svg instead of a sprite. SVGR is not suitable in cases when there are many repeated icons on the page. For example - catalog with infinity scroll and many icons on product cards (favorite, basket, phone, letter, discounts, etc.), in this case, icons will greatly increase the DOM In general, you need to look at the situation and where possible, you can try to use SVGR. For projects where sprite is strongly needed, I am still waiting for a new version of the svg-sprite-loader)
@Krasnopir Thanks for the answer. I am working with a legacy project. So I will wait for a new version of the svg-sprite-loader)
Hi, any update?
Duplicate of #359.
Found a workaround without forking or publishing packages. Answered here: https://github.com/JetBrains/svg-sprite-loader/issues/359
@izaika @DanielOrtel @beautyfree
You don't think this is a duplicate?
Fixed in v5.1.1
(?).
/cc @d3x42.
(Note to everyone following this thread that 5.1.1 hasn't been released yet, for reasons outline here: https://github.com/JetBrains/svg-sprite-loader/pull/403#issuecomment-739306615)
Should be fine now (v5.1.1 published)
npm i -D webpack solved it for me
I am facing a problem with webpack 5.
I have the following settings:
and getting the next error:
Loader not ready for webpack 5 yet?