svg-module
svg-module copied to clipboard
You may need an additional loader to handle the result of these loaders
when svg file contain style tag this error appear and fail to load
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 :)
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
I think I am experiencing this issue too. The <style> tags get stripped out, and they should not be.
I tried forking this repo and tweaking options as @vrwebdesign suggested, but it didn't seem to make a difference.