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

Chrome Inspector throwing errors

4 Answers 227 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 10 Aug 2015, 11:49 PM

I'm getting the following error when using the Telerik Kendo UI Chrome Inspector:

 Uncaught TypeError: Cannot read property 'get' of null (Line 94, in the makeWidgetInfo method)

 This error is repeated 14 times or so, roughly corresponding to the number of Kendo widgets/bindings in the DOM at the time.

I found one google result for this: http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/6502730-fixing-error-in-chrome-inspector#{toggle_previous_statuses}

I didn't find any corresponding posts in the forums: http://www.telerik.com/search?start=0&q=%2522Chrome%2bInspector%2522%2berror&collection=telerik30&ResourceType=Forum&hgurl=kendo%252Dui

I'm not sure that I can readily post code to duplicate, but I'm hoping someone familiar with the inspector can give me a clue as to what's happening; essentially I just need to know if this is an error in the Inspector, or an error in my code somewhere. It's notable that I'm not seeing any problems otherwise, either in the console, or visually while using the application. 

 

 

4 Answers, 1 is accepted

Sort by
0
Accepted
Mihai
Telerik team
answered on 11 Aug 2015, 08:33 AM
Hi Travis,

It is not in your code, but in our Devtools extension (you can verify that by disabling the extension, the error will no longer show up).

The Inspector hasn't been updated in a while and it's possibly slightly out of date with the newer Kendo versions.  For now, you can just ignore this error.  We will attempt to fix that in a future version of the Inspector.

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Travis
Top achievements
Rank 1
answered on 11 Aug 2015, 03:48 PM
Thanks Mihai, appreciate the response. Is an update to the inspector on the roadmap at this point, or unknown?
0
Mihai
Telerik team
answered on 12 Aug 2015, 08:52 AM
Hi Travis,

Nothing planned, as far as I know.

However, as I'm the author of the code, I looked through it and I can't manage to reproduce the error.  It *might* happen with a buggy widget, because all widgets are assumed to have an element property (a jQuery object), and the error can only happen when a widget doesn't have an element (element is null).  Could be that a widget was destroyed, but wasn't properly unlinked from the DOM element that it belonged to.

Do you use any custom widgets?  And if not, can you make a list of any Kendo widgets that you use in the page where the error shows up?

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Travis
Top achievements
Rank 1
answered on 13 Aug 2015, 04:08 PM

Hi Mihai,

Thanks again, and nice work on the inspector.

After a bit of digging, I discovered that the reason I was getting the errors: an apparent double-binding of a couple of grids that are part of a viewModel. I'll be searching for forum posts on the proper way to implement that, but it doesn't seem like there's actually any problem with the inspector.

Trav 

 

 

 

Tags
General Discussions
Asked by
Travis
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Travis
Top achievements
Rank 1
Share this question
or