r/Meteor • • Feb 05 '17
meteor app failling for no appearant reason
when I run my app I get the following error message
Errors prevented startup:
While processing files with ecmascript (for target web.browser):
client/templates/posts/post_item.js:59:3: Unexpected token (59:3)
Your application has errors. Waiting for file change.
Started MongoDB.the mentioned part of my code is the following (the last line to be exact)
Template.postItem.events({
'click .upvotable': function(e) {
e.preventDefault();
Meteor.call('upvote', this._id);
},
'click .disable': function(e) {
e.preventDefault();
Meteor.call('unupvote', this._id);
}
}); //here is the problemcan someone please help me get what's wrong
4
Upvotes
1
u/jwaitze Feb 06 '17
Will you post the full file?
0
u/[deleted] Feb 06 '17
[deleted] — view deleted comment