The horrible debug.js:41

I’m sure you’ve all seen errors pointing to debug.js:41:

Exception from Tracker afterFlush function:        debug.js:41
ReferenceError: Cards is not defined               debug.js:41

Oh yeah, Meteor? And how is debug.js:41 supposed to be of any value?

Meaningful stack traces and line numbers would so nice. :blush:

5 Likes

It seems that the lines get lost here: https://github.com/meteor/meteor/blob/832e6fe44f3635cae060415d6150c0105f2bf0f6/packages/tracker/tracker.js#L69-L84. Tracker logs the error by default instead of throwing it.

Here is the GitHub issue: https://github.com/meteor/meteor/issues/4890 :wink:

1 Like

Agreed, saw this one a lot. Meteor’s stack traces could sometimes use some work