草庐IT

解决一次Cannot read properties of null (reading ‘length‘)的问题:

本次为编写学校课时设计仿qq聊天的题目而编写代码,在学习大佬代码的过程中发现在自己电脑上启动服务器端的时候出现了一个有意思的问题。大佬博客链接奉上:WebSocket之仿QQWeb即时聊天系统(上)_榕林子的博客-CSDN博客_web即时聊天WebSocket之仿QQWeb即时聊天系统(下)_榕林子的博客-CSDN博客_仿qq聊天系统一、错误原因:TypeError:Cannotreadpropertiesofnull(reading'length')  atD:\phpstudy_pro\WWW\MyChat\app.js:54:17  atQuery.(D:\phpstudy_pro\WW

解决一次Cannot read properties of null (reading ‘length‘)的问题:

本次为编写学校课时设计仿qq聊天的题目而编写代码,在学习大佬代码的过程中发现在自己电脑上启动服务器端的时候出现了一个有意思的问题。大佬博客链接奉上:WebSocket之仿QQWeb即时聊天系统(上)_榕林子的博客-CSDN博客_web即时聊天WebSocket之仿QQWeb即时聊天系统(下)_榕林子的博客-CSDN博客_仿qq聊天系统一、错误原因:TypeError:Cannotreadpropertiesofnull(reading'length')  atD:\phpstudy_pro\WWW\MyChat\app.js:54:17  atQuery.(D:\phpstudy_pro\WW

解决TypeError: Cannot read properties of null (reading ‘xxx‘)的错误

文章目录1.文章目录2.分析问题3.解决错误4.问题总结1.文章目录今天测试小姐姐,在测试某页面时,报出如下图的错误:TypeError:Cannotreadpropertiesofnull(reading'type')atw(http://...xxx.../assets/index.a9f96e7f.js:1052:191280)atx(http://...xxx.../assets/index.a9f96e7f.js:952:39438)atb(http://...xxx.../assets/index.a9f96e7f.js:952:36266)atI(http://...xxx...

解决TypeError: Cannot read properties of null (reading ‘xxx‘)的错误

文章目录1.文章目录2.分析问题3.解决错误4.问题总结1.文章目录今天测试小姐姐,在测试某页面时,报出如下图的错误:TypeError:Cannotreadpropertiesofnull(reading'type')atw(http://...xxx.../assets/index.a9f96e7f.js:1052:191280)atx(http://...xxx.../assets/index.a9f96e7f.js:952:39438)atb(http://...xxx.../assets/index.a9f96e7f.js:952:36266)atI(http://...xxx...

解决npm ERR! Cannot read properties of null (reading ‘pickAlgorithm‘)报错问题

在vue项目中,使用npmi命令安装nodemodules时,出现报错。 第一句:npmERR!Cannotreadpropertiesofnull(reading'pickAlgorithm') 搜索的话也是有很多答案的,比如:在终端中运行命令:npmcacheclear--force然后重新运行npmi命令,再次安装安装完成,没有出现报错npmrunserve运行项目,项目可以正常启动了。第二句:npmERR!Acompletelogofthisruncanbefoundin: 网上有说是版本不一致的原因,那么npm-v检测npm的版本,再用npminstallnpm-g更新一下(也可以用

解决npm ERR! Cannot read properties of null (reading ‘pickAlgorithm‘)报错问题

在vue项目中,使用npmi命令安装nodemodules时,出现报错。 第一句:npmERR!Cannotreadpropertiesofnull(reading'pickAlgorithm') 搜索的话也是有很多答案的,比如:在终端中运行命令:npmcacheclear--force然后重新运行npmi命令,再次安装安装完成,没有出现报错npmrunserve运行项目,项目可以正常启动了。第二句:npmERR!Acompletelogofthisruncanbefoundin: 网上有说是版本不一致的原因,那么npm-v检测npm的版本,再用npminstallnpm-g更新一下(也可以用

TypeError: Cannot read properties of undefined (reading ‘NAME‘)报错解决

一、错误查找问题描述:前端一个el-table表格,一个医院查询到的科室从后端返回时总是显示不出来,response里面是有数据的,这个表格别的医院都能显示出科室,就那个医院显示不出。报错:TypeError:Cannotreadpropertiesofundefined(reading'NAME') 查找问题所在,发现el-table里面有一个:formatter="formatter_DepType",具体方法如下:constformatter_DepType=function(row,column){if(_this.Type_Ary&&row.DEP_TYPE){return_this

TypeError: Cannot read properties of undefined (reading ‘NAME‘)报错解决

一、错误查找问题描述:前端一个el-table表格,一个医院查询到的科室从后端返回时总是显示不出来,response里面是有数据的,这个表格别的医院都能显示出科室,就那个医院显示不出。报错:TypeError:Cannotreadpropertiesofundefined(reading'NAME') 查找问题所在,发现el-table里面有一个:formatter="formatter_DepType",具体方法如下:constformatter_DepType=function(row,column){if(_this.Type_Ary&&row.DEP_TYPE){return_this

Cannot read properties of undefined (reading ‘validate‘)“

1、注意两个地方  1、ref前面加冒号“:”,还是不加冒号。  2、this.$refs[value].validate()=>(),更改为this.$refs[value].validate()=>(),   不排除this.$refs[value].validate()=>(),有时候不会报错2、示范代码1data(){},methids:{ makeSure(){      this.$refs.value.validate((valid)=>{        if(valid){      })        }}  

Cannot read properties of undefined (reading ‘validate‘)“

1、注意两个地方  1、ref前面加冒号“:”,还是不加冒号。  2、this.$refs[value].validate()=>(),更改为this.$refs[value].validate()=>(),   不排除this.$refs[value].validate()=>(),有时候不会报错2、示范代码1data(){},methids:{ makeSure(){      this.$refs.value.validate((valid)=>{        if(valid){      })        }}