Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
plantir opened this issue Apr 28, 2020 · 4 comments
Open

Comments

@plantir
Copy link

plantir commented Apr 28, 2020

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

@sam3d
Copy link
Collaborator

sam3d commented Apr 28, 2020

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
Copy link
Author

plantir commented Apr 28, 2020

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
Copy link

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

@RobbieTheWagner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants