TypeError: Cannot read property ‘name‘ of undefined at Qe.onShow

简介: TypeError: Cannot read property ‘name‘ of undefined at Qe.onShow

TypeError: Cannot read property 'name' of undefined


at Qe.onShow (http://127.0.0.1:19348/appservice/pages/index/index.js:52:37)


at Qe.<anonymous> (http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:2492821)


at Qe.r.__callPageLifeTime__ (http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:2492565)


at nn (http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:2512288)


at http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:2517166


at cn (http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:2517705)


at Function.<anonymous> (http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:2524077)


at c.<anonymous> (http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:2483894)


at c.emit (http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:612479)


at Object.emit (http://127.0.0.1:19348/appservice/__dev__/WASubContext.js?t=wechat&s=1710723521628&v=2.16.1:2:565013)


2

看到这些报错信息,我们顺着去寻找错误,TypeError: Cannot read property 'name' of undefined ,他报的错误类型是TypeError,Cannot read property 'name' of undefined ,说明应该是某个对象的属性name没用定义,at Qe.onShow (http://127.0.0.1:19348/appservice/pages/index/index.js:52:37),紧接着我们在根据这行信息定位错误代码,/pages/index/index.js:52:37,打开index.js查找52行附近的代码,解决问题,OK。


目录
相关文章
|
3月前
|
存储 JavaScript 前端开发
成功解决:Cannot read properties of undefined (reading ‘commit‘)
这篇文章提供了解决Vuex中"Cannot read properties of undefined (reading 'commit')"错误的两种方法:检查模板中的数据属性是否存在,以及确保在Vue实例中正确挂载了store对象。
成功解决:Cannot read properties of undefined (reading ‘commit‘)
|
3月前
|
定位技术 Apache
Echarts——Invalid geoJson format Cannot read property 'length' of undefined
Echarts——Invalid geoJson format Cannot read property 'length' of undefined
71 0
|
3月前
|
JavaScript
VUE——filemanager-webpack-plugin报错TypeError: Cannot read property 'isFile' of undefined
VUE——filemanager-webpack-plugin报错TypeError: Cannot read property 'isFile' of undefined
66 0
|
5月前
|
前端开发 小程序 JavaScript
微信小程序-Unhandled promise rejection TypeError: Cannot read property ‘get‘ of undefined
微信小程序-Unhandled promise rejection TypeError: Cannot read property ‘get‘ of undefined
|
6月前
|
资源调度 前端开发
编译第三方前端项目时候出现Syntax Error: TypeError: Cannot set properties of undefined (setting ‘parent‘)
编译第三方前端项目时候出现Syntax Error: TypeError: Cannot set properties of undefined (setting ‘parent‘)
458 0
|
3月前
|
前端开发 JavaScript
VUE——Uncaught (in promise) TypeError: Cannot read property '__esModule' of undefined
VUE——Uncaught (in promise) TypeError: Cannot read property '__esModule' of undefined
50 0
TypeError: Cannot set properties of undefined (setting ‘resdata‘),res定义数据出现的问题,定义的方法用this换成that
TypeError: Cannot set properties of undefined (setting ‘resdata‘),res定义数据出现的问题,定义的方法用this换成that
Cannot read properties of undefined (reading ‘row‘)
Cannot read properties of undefined (reading ‘row‘)
Cannot read properties of undefined (reading ‘post‘)
Cannot read properties of undefined (reading ‘post‘)
|
4月前
|
JavaScript
element-ui Cannot read properties of undefined (reading ‘name‘),data中写成集合的形式
element-ui Cannot read properties of undefined (reading ‘name‘),data中写成集合的形式
下一篇
无影云桌面