Vue common error
ERROR Error: vue-loader requires @vue/compiler-sfc to be present in the dependency tree.
Solution
npm i -D vue-loader@14
- If it still reports an error
rm -rf node_modules rm package-lock.json npm cache clear --force npm install