This is a migrated thread and some comments may be shown as answers.

Uncaught TypeError: Cannot read property 'tagName' of undefined

3 Answers 377 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 2
Veteran
Iron
Grant asked on 20 Jan 2020, 12:05 PM

Hi, 

I apologize if this is a repeated question, but does anyone know what this error means? I've searched my code-base and only found mention of 'tagName' in the jQuery and Kendo libraries ("e.target.tagName", "getElementByTagName()")

Its not causing problems, but our QC dept keep bringing it up.

Thanks in advace,
Grant

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 22 Jan 2020, 07:48 AM

Hello Grant,

Based on the proved information, I am not able to identify what might be causing the errors. 

Would it be possible to prepare a Dojo example that demonstrates the issue? I will debug it and hopefully I will be able to find the source of it.

I am looking forward to your reply.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Grant
Top achievements
Rank 2
Veteran
Iron
answered on 22 Jan 2020, 08:12 AM

Thanks for getting back to me Martin, 

Unfortunately I cannot replicate it in Dojo, as it does appear in simple examples, only on my more complicated screens where a few widgets are used and interact with each other.

Here is the Stack Trace from my console, if you can't help, its fine. Like i said, its not affecting functionality.

VM11451:93 Uncaught TypeError: Cannot read property 'tagName' of undefined
    at makeWidgetInfo (<anonymous>:93:50)
    at <anonymous>:552:33
makeWidgetInfo                                             @ VM11451:93
(anonymous)                                                @ VM11451:552
setTimeout (async)
window.kendo.window.kendo.devtools.kendo.ui.Widget.fn.init @ VM11451:549
init                                                       @ kendo.custom.min.js:5
(anonymous)                                                @ kendo.custom.min.js:2
each                                                       @ jquery.min.js:2
each                                                       @ jquery.min.js:2
e.fn.<computed>                                            @ kendo.custom.min.js:2
editEvent                                                  @ kendo.custom.min.js:23
_createPopupEditor                                         @ kendo.custom.min.js:24
_editEvent                                                 @ kendo.custom.min.js:24
editEvent                                                  @ kendo.custom.min.js:24
t.options.editable.t._viewEditHandler                      @ kendo.custom.min.js:25
trigger                                                    @ kendo.custom.min.js:1
window.kendo.window.kendo.devtools.kendo.ui.Widget.trigger @ VM11451:587
(anonymous)                                                @ kendo.custom.min.js:15
dispatch                                                   @ jquery.min.js:3
r.handle                                                   @ jquery.min.js:3

Regards, 
Grant

0
Accepted
Martin
Telerik team
answered on 24 Jan 2020, 07:16 AM

Hello Grant,

Thank you for the screenshot. 

From what I can see, you are using a custom .js file. What I could offer is to try to use the official files or cdns, to see whether the error will occur again. If it does not, that would narrow the source to that custom file. You can then try to discover what is causing the error and hopefully fix it.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Grant
Top achievements
Rank 2
Veteran
Iron
Answers by
Martin
Telerik team
Grant
Top achievements
Rank 2
Veteran
Iron
Share this question
or