[Vuejs]-Failed to compile my vue app with typescript

0👍

Your package.json is messed up.

In dependencies you have both the packages @vuelidate/core/@vuelidate/validators which is Vuelidate for Vue 3 and "vuelidate": "^0.7.6" which is package Vuelidate 0.x for Vue 2

Either you are somewhere importing the wrong type or just TS is loading type definitions from wrong package (due to duplication). Hard to tell without seeing all the code…

Just remove the package for Vue 2 as you are using Vue3

and btw vue should be probably in your dependencies, not devDependencies

Leave a comment