Im works with the Meteor framework and gets into this error when I try to return the name of the current user to the template helper.
Template.user.userName = function (){ return Meteor.user().name; } <template name ="user"> {{userName}} </template>
I keep getting this error: (Error: Uncaught TypeError: Unable to read property name "null")
However, everything works fine with the javascript console.
Any help would be greatly appreciated.
source share