ManuelDeLeon / viewmodel

MVVM for Meteor
https://viewmodel.org
MIT License
205 stars 23 forks source link

Error: Exception in setTimeout callback: #194

Closed jebarjonet closed 8 years ago

jebarjonet commented 8 years ago

I sometimes see this in my console :

Exception in setTimeout callback:

TypeError: Cannot read property 'childNodes' of null
    at Function.ViewModel.getPathTo (http://localhost:3000/packages/manuel_viewmodel.js?f31121e3f28d80af44ebd9dab257b6d1d3170597:969:34)
    at ViewModel.viewmodel.vmPathToParent (http://localhost:3000/packages/manuel_viewmodel.js?f31121e3f28d80af44ebd9dab257b6d1d3170597:996:33)
    at ViewModel.vmHash (http://localhost:3000/packages/manuel_viewmodel.js?f31121e3f28d80af44ebd9dab257b6d1d3170597:1077:24)
    at http://localhost:3000/packages/manuel_viewmodel.js?f31121e3f28d80af44ebd9dab257b6d1d3170597:175:30
    at _.extend.withValue (http://localhost:3000/packages/meteor.js?9730f4ff059088b3f7f14c0672d155218a1802d4:971:17)
    at http://localhost:3000/packages/meteor.js?9730f4ff059088b3f7f14c0672d155218a1802d4:428:45
    at http://localhost:3000/packages/meteor.js?9730f4ff059088b3f7f14c0672d155218a1802d4:999:22

I do not understand where does it come from. It appears especially during hot code pushes.

I cannot make a repro (it is on a big project and I do not have the time/patience to decompose it). It does not seem to interfere with the app which continues to work well even when this error occurs.

Have you already seen that ? Not a big deal but I would have liked to understand it.

I am using Chrome and Windows 10.

ManuelDeLeon commented 8 years ago

I wasted a lot of time on this one because I was testing with Meteor 1.3 and it has a bug with hot code pushes.

Update to 3.4.8, it should be fine.

ManuelDeLeon commented 8 years ago

Well, I wouldn't say it was a complete waste because I did report the bug...