当前位置:网站首页>改哭了,终于解决了Cannot read properties of undefined (reading ‘parseComponent‘)
改哭了,终于解决了Cannot read properties of undefined (reading ‘parseComponent‘)
2022-07-29 05:19:00 【学习记录而已】
Vue中eslint报错的修改,绝对有效!!!
Syntax Error: TypeError: Cannot read properties of undefined (reading 'parseComponent')
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

方法一:
1.找到文件 .eslintrc.js文件,如下图,把 '@vue/standard’注释掉
方法二:
1.找到文件 vue.config.js
修改lintOnSave 为false,如果没有就添加vue.config.js这个文件并把 lintOnSave 设置为false
方法三:
就是所谓的在build/webpack.base.conf.js文件中,注释或者删除掉:module->rules中有关eslint的规则,(我有这个文件但是内容空空白白,然并软,这张图复制别人的,位置就是那里)
方法四:
以上三种方式都无效的我,浪费一下午找的,最后差点信了有些人的鬼话想去卸载脚手架vue-cli,我真是服了那些出馊主意的人,最后这个方式解决了,
1、 yarn add vue-template-compiler
或 npm add vue-template-compiler
2、最后如果还是不行就再用
yarn upgrade –latest vue-template-compiler
npm upgrade –latest vue-template-compiler
边栏推荐
- ClickHouse学习(六)语法优化
- 移动端-flex项目属性
- uniapp组件之选择选项(如套餐选择)
- 解决表单校验提示信息不消失问题以及赋值不生效问题
- [C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
- Hcia-r & s self use notes (27) comprehensive experiment
- Fvuln-自动化web漏洞检测工具
- uniapp页面标题显示效果
- DAY6:利用 PHP 编写文件上传页面
- Build msys2 environment with win10
猜你喜欢
随机推荐
Database operation day 6
第三课threejs全景预览房间案例
uniapp页面标题显示效果
QFrame类学习笔记
Clickhouse learning (x) monitoring operation indicators
ClickHouse学习(八)物化视图
Summary of knowledge points related to forms and forms
虚拟增强与现实第二篇 (我是一只火鸟)
Day 2
[C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
SQL修复重复数据
Clickhouse learning (IX) Clickhouse integrating MySQL
Masscan使用教程.
ClickHouse学习(五)集群操作
Three handshakes and four waves for the interview summary
Seay source code audit system
QT layout management -- Part stretch principle and sizepolicy
Character type conversion
弹性盒子相关知识
Solve the problem that the prompt information of form verification does not disappear and the assignment does not take effect








