vue-svg-loader icon indicating copy to clipboard operation
vue-svg-loader copied to clipboard

vue3 error

Open wwhtml opened this issue 3 years ago • 5 comments

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

wwhtml avatar Apr 13 '22 21:04 wwhtml

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

mokone91 avatar Apr 15 '22 07:04 mokone91

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

weijian-zhu avatar May 16 '22 09:05 weijian-zhu

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

linghengqian avatar Sep 02 '22 11:09 linghengqian

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

CryptozombiesCorp avatar Sep 07 '22 17:09 CryptozombiesCorp

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

seyfer avatar Aug 25 '23 15:08 seyfer