[英]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.