I create the vue3 project through vue-cli, and follow the document to use the loader, but some errors occur when i use it
here is the configuration in vue.config.ts
module.exports = {
chainWebpack: (config) => {
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule
.use('vue-loader')
.loader('vue-loader-v16') // or `vue-loader-v16` if you are using a preview support of Vue 3 in Vue CLI
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader');
}
};
version: 0.17.0-beta.1 vue-version: vue 3.0 beta
I create the vue3 project through vue-cli, and follow the document to use the loader, but some errors occur when i use it
here is the configuration in vue.config.ts
the usage in App.vue
then the error occur in broswer