Component name "Pannel" should always be multi-word vue/multi-word-component-names
在 vue.config.js 中 配置
module.exports = {
lintOnSave: false // 关闭 eslint 的 规则检查
}
Module not found: Error: Can't resolve 'less-loader' in 'C:\Users\huanglujian\Desktop\vue_test\threeday'
Vue 配置的脚手架没有自动解析 less 的功能 , 需要 安装 相应的 包
命令 : yarn add less less-loader -D
Uncaught TypeError: Cannot read properties of undefined (reading ‘install‘)
vue-router 4.x 只能结合 vue3 进行使用,vue-router 3.x 只能结合 vue2 进行使用。
卸载高版本, 重新下载低版本 vue-router
yarn add vue-router@3.1.3
Avoid using Array as root value for reactive() as it cannot be tracked in watch() or watchEffect(). Use ref() instead. This is a Vue-2-only limitation.
使用 vant 的时候报错, 看看是不是 vue2的项目使用的不是相对应的vant版本,如是:卸载下载相应的版本
yarn add vant@latest-v2
本文档介绍了Vue项目的常见配置问题及解决方法,包括关闭eslint检查,安装less和less-loader,解决vue-router版本不匹配问题,以及在使用Vant时遇到的Vue2兼容性错误。通过提供具体的命令行操作和版本适配建议,帮助开发者快速定位并修复问题。
2024

被折叠的 条评论
为什么被折叠?



