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
SVG loading - v5.0.0-beta.7 #6785
Labels
Comments
Add the following lines: svgRule.delete('type');
svgRule.delete('generator'); after |
That fixes the issue. Thank you. |
THANK YOU SIR! Now I just need to try to work in the three hours i lost trying to fix this. |
module.exports = {
chainWebpack: config => {
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule.delete('type');
svgRule.delete('generator');
// If you're using Vue Cli V5, you don't need to use `vue-loader-v16:16.0.0-beta.5.4` as the documentation for `vue-svg-loader:0.17.0-beta.2` mentions.
svgRule
.use('vue-loader')
.loader('vue-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader');
},
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
5.0.0-beta.7
Environment info
Steps to reproduce
What is expected?
Load SVG as components without error.
What is actually happening?
Vue compiling without error, but when I open for example page on devServer, console throws error:
I suspect, it has something to do with this feature: #6771
As I am not that experienced programmer to debug this, I ask you for help. Thank you.
The text was updated successfully, but these errors were encountered: