简体   繁体   English

请问我该如何处理这个错误“未处理的拒绝(类型错误):无法读取未定义的属性'过滤器'”

[英]Please how do i handle this error “Unhandled Rejection (Type Error): Cannot read property 'filter' of undefined”

I need your help.我需要你的帮助。 I am a newbie with javascript/React.我是 javascript/React 的新手。 I am working on this tutorial https://github.com/Azure-Samples/js-e2e-client-cognitive-services and I get this error "Unhandled Rejection (TypeError): Cannot read property 'filter' of undefined".我正在研究本教程https://github.com/Azure-Samples/js-e2e-client-cognitive-services ,我收到此错误“未处理的拒绝(TypeError):无法读取未定义的属性'过滤器'”。 Attached is a screenshot附上截图

Responses will be greatly appreciated.响应将不胜感激。

It seems like the variable analysis.tags is undefined.似乎变量analysis.tags未定义。

You can use console.log(analysis) to checkout the value.您可以使用console.log(analysis)来检查该值。

You can add check on tags object before doing any action您可以在执行任何操作之前添加检查标签 object

tags && tags.filter(your remaining code)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在尝试调度一个操作,但收到此错误:“未处理的拒绝(TypeError):无法读取未定义的属性'类型'” - I am trying to dispatch a action but getting this error: “ Unhandled Rejection (TypeError): Cannot read property 'type' of undefined” 我想问一下这个错误 Unhandled Rejection (TypeError): Cannot destructure property `data` of 'undefined' or 'null' - i wanted to ask about this error please Unhandled Rejection (TypeError): Cannot destructure property `data` of 'undefined' or 'null' 为什么在移动对象后出现未处理的拒绝 (TypeError) 错误:无法读取 Redux 应用程序中未定义的属性“过滤器”? - Why after moving the object I have an Unhandled Rejection (TypeError) error: Cannot read property 'filter' of undefined in Redux app? axios:未处理的拒绝(TypeError):无法读取未定义的属性“错误” - axios: Unhandled Rejection (TypeError): Cannot read property 'error' of undefined React - 未处理的拒绝(TypeError):无法读取未定义的属性“错误” - React - Unhandled Rejection (TypeError): Cannot read property 'error' of undefined 来自 api 的用户搜索得到错误的过滤响应:`未处理的拒绝(TypeError):无法读取未定义的属性'结果' - Filter response from api on user search getting error :`Unhandled Rejection (TypeError): Cannot read property 'results' of undefined` React API错误(未处理的拒绝(TypeError):无法读取未定义的属性“ 0”) - React API Error (Unhandled Rejection (TypeError): Cannot read property '0' of undefined) 我收到错误:-未处理的拒绝(TypeError):无法读取 React 应用程序中未定义的属性“id” - I get the error : - Unhandled Rejection (TypeError): Cannot read property 'id' of undefined in React Application 错误:未处理的拒绝(类型错误):无法读取未定义的属性“地图”不确定我错过了什么 - Error: Unhandled Rejection (TypeError): Cannot read property 'map' of undefined not sure what I'm missing 无法读取未定义未处理拒绝的属性“_id” - Cannot read property '_id' of undefined unhandled Rejection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM