Uncaught TypeError: Cannot read property 'helpers' of undefined #95
Comments
As in the other issue, in order to help I'd have to see your code. |
Same code as the last ticket but I just tried it with a collection - Organizations |
It's probably because there's no template called "Organizations". There are two solutions:
|
seems like the order of how your define your package matters, inside my package.js, i put the common file I used to call new Meteor.Pagination last, so the depended Template(where I call {{> pages}} ... could be loaded before Pages.coffee runs and it works :D this.Pages = new Meteor.Pagination({ api.add_files([ |
I got here due to the same issue. What @alethes said solved the problem for me. Just wanted to point out that the documentation (meaning, the README.md file) instructs to use
This crashed in my code (iron router could not find the routes and the helpers couldn't be found either). Everything got fixed by using
Should the README.md be corrected or is there something else I don't understand going on when passing the template name to the pagination constructor? |
I am using v1.8.4 and also got this Uncaught TypeError: Cannot read property 'helpers' of undefined I am using iron-router and have already provided the routerTemplate and itemTemplate settings this.Pages = new Meteor.Pagination(Posts, {
router: "iron-router",
homeRoute: "/",
route: "/",
routerTemplate: "postsList",
routerLayout: "layout",
itemTemplate: "postItem"
}); |
Try using templateName instead of routerTemplate. |
Got blank page when using templateName instead of routerTemplate |
Uncaught TypeError: Cannot read property 'renderFunction' of undefined |
Uncaught TypeError: Cannot read property 'renderFunction' of undefined |
how to use this Package in meteor . i dont understand your Example and Read me file |
I'm getting the following error, my code is based on the basic example
Uncaught TypeError: Cannot read property 'helpers' of undefined
The text was updated successfully, but these errors were encountered: