The server boots up fine, but when I try to visit any page on my site locally I see the following error in the server log:
Error running template: TypeError: Object [object Object] has no method 'onStop'
This is the stack trace I managed to extract:
TypeError: Object [object Object] has no method 'onStop'
at [object Object].Blaze.View.autorun (packages/blaze/view.js:213:1)
at [object Object].Blaze.Each (packages/blaze/builtins.js:157:1)
at fireCallbacks (packages/blaze/view.js:279:1)
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at Object._.extend.nonreactive (packages/mrt_server-deps/packages/mrt_server-deps.js:54:1)
at Blaze._fireCallbacks (packages/blaze/view.js:276:1)
at Object.Blaze._withCurrentView (packages/blaze/view.js:538:1)
at Object.Blaze._fireCallbacks (packages/blaze/view.js:275:1)
at Object.Blaze._createView (packages/blaze/view.js:293:1)
at Object.Blaze._expandView (packages/blaze/view.js:421:1)
So I just upgraded to version 1.2.1 and I suppose I’m having the same problem everybody has here: reactive-publish.
I’m using lepozepo:reactive-publish and I need reactivity on the server … what can I do? Any ideas?
The error I’m having is
Error running template: TypeError: Object [object Object] has no method 'onStop'
and no pages is loaded
UPDATE: the error was because of lepozepo:reactive-publish, so I got in contact with the author and he replied telling me that he is working on fixing the issue
I have moved to peerlibrary:reactive-publish, and after some initial issues it is now working for me. In particular, ‘this’ is not available within the autorun, so outside the autorun I used
var self=this
then used self. instead of this. within the autoruns.