nuxt-community / svg-module

Super simple svg loading module for Nuxt.js
MIT License
340 stars 35 forks source link

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

Open plantir opened 4 years ago

plantir commented 4 years ago

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

sam3d commented 4 years ago

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 :)

plantir commented 4 years ago

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

RobbieTheWagner commented 4 years ago

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

RobbieTheWagner commented 4 years ago

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