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

vue3 error #189

Open
wwhtml opened this issue Apr 13, 2022 · 5 comments
Open

vue3 error #189

wwhtml opened this issue Apr 13, 2022 · 5 comments

Comments

@wwhtml
Copy link

wwhtml commented Apr 13, 2022

error in ./src/assets/svg/collapsed.svg

Syntax Error: Error:

Vue packages version mismatch:

  • [email protected] (C:\Users\Wang\Desktop\新建文件夹 (2)\app\node_modules\vue\index.js)
  • [email protected] (C:\Users\Wang\Desktop\新建文件夹 (2)\app\node_modules\vue-template-compiler\package.json)

This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

@ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/App.vue?vue&type=script&lang=js 1:0-52 5:16-26
@ ./src/App.vue?vue&type=script&lang=js
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.5.32:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

@mokone91
Copy link

Hi! vue-template-compiler is related to vue2, seems you need to use @vue/compiler-sfc

@weijian-zhu
Copy link

@vue/compiler-sfc does not work either @mokone91

@linghengqian
Copy link

You need to provide a reproducible example. If not, this issue should be closed and marked as invalid.

@CryptozombiesCorp
Copy link

Yeah this project no longer works with webpack 5. best to move to something else

@seyfer
Copy link

seyfer commented Aug 25, 2023

this is a good alternative https://github.com/shrpne/vue-inline-svg

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

6 participants