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

0.17.0-beta.1 in vue3 failed #138

Closed
zhangtaoBqteam opened this issue Aug 27, 2020 · 3 comments
Closed

0.17.0-beta.1 in vue3 failed #138

zhangtaoBqteam opened this issue Aug 27, 2020 · 3 comments

Comments

@zhangtaoBqteam
Copy link

zhangtaoBqteam commented Aug 27, 2020

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

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');
  }
};

the usage in App.vue
image

then the error occur in broswer
image

@zhangtaoBqteam
Copy link
Author

Here is the reproduction https://github.com/zhangtaoBqteam/feedback

@syuilo
Copy link

syuilo commented Apr 12, 2021

I have the same problem. Why was it closed?

@arcs-
Copy link

arcs- commented Nov 30, 2021

this is still an issue

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

No branches or pull requests

3 participants