svg-module icon indicating copy to clipboard operation
svg-module copied to clipboard

You may need an additional loader to handle the result of these loaders

Open plantir opened this issue 5 years ago • 4 comments

when svg file contain style tag this error appear and fail to load

plantir avatar Apr 28 '20 13:04 plantir

Hi @vrwebdesign, please could you create the minimal reproducible example of the bug you're seeing so I can diagnose?

Going by your description, this may be a duplicate of #24. Please give that thread a look and let me know if the proposed solution fixes your issue :)

brhx avatar Apr 28 '20 13:04 brhx

const vueSvgLoader = [ { loader: "vue-svg-loader", options: { svgo: false }, }, ]; this is the part of nuxt-svg module for config vue svg loader when I comment options or change to options: { useSvgo: false } everything ok raw loader is not good for me I want to define many svg as a global component and use them every where in my app

you can see the repo

plantir avatar Apr 28 '20 17:04 plantir

I think I am experiencing this issue too. The <style> tags get stripped out, and they should not be.

RobbieTheWagner avatar Aug 14 '20 01:08 RobbieTheWagner

I tried forking this repo and tweaking options as @vrwebdesign suggested, but it didn't seem to make a difference.

RobbieTheWagner avatar Aug 14 '20 01:08 RobbieTheWagner