I was updating an old 1.6 project to 2.x and when merging some changes, Meteor.subscribe started to throw errors (see image)
I do not have MeteorToys installed and no references to it in my code.
The screenshot shows an error 'at Connection.subscribe (livedata_connection.js:392:7)'
but it seems like there is some unfortunate coding in livedata_connection.js, the test for ‘existing’ returns -1 and later
if(existing), which is expecting an object or undefined, is satisfied with the -1 and goes ahead trying to read and create properties on ‘existing’, which does not really exist…
I’m lost… why does it think the name of the sub is ‘MeteorToys’ and why does not livedata_connection.js test for an object instead of undefined?
Update: I did indeed find a reference toMeteorToys in the code, but after removing it I get the same error for each call I make to Meteor.subscribe. Strange.