-
Notifications
You must be signed in to change notification settings - Fork 87
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
Invalid Component Definition #140
Comments
Anybody? Exact same problem here |
two case:
|
Thanks! This is a working vue config: module.exports = {
chainWebpack: (config) => {
const svgRule = config.module.rule('svg');
svgRule.type('javascript/auto');
svgRule.uses.clear();
svgRule.use('babel-loader').loader('babel-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
I am trying to use the loader in a Laravel project and I keep getting an error of "Invalid Component Definition: route/filename.svg". I have Laravel Framework ^6.0 and vue@2.6.12 for this project. Any help would be appreciated! These are the rules I have in webpack.mix.js:
The text was updated successfully, but these errors were encountered: