These are chat archives for reactioncommerce/reaction

14th
Mar 2015
Goutham Veeramachaneni
@gouthamve
Mar 14 2015 07:56
Hi, So I was having problems with using the packages. I am having the following errors:
[Error] TypeError: undefined is not an object (evaluating 'Template.test.helpers')
    (anonymous function) (reaction-test.js, line 80)
    (anonymous function) (reaction-test.js, line 104)
    global code (reaction-test.js, line 230)
[Error] Error: No route found named "test"
    _withCurrentView (blaze.js, line 2045)
    (anonymous function) (blaze.js, line 2388)
    (anonymous function) (blaze.js, line 839)
    dispatch (jquery.js, line 4698)
    handle (jquery.js, line 4366)
So, I was having problems with mailchimp package and I wanted to learn and debug my issues by using a test app.
But even such a simple app is giving me problems.
I am referring to this repo: https://github.com/Gouthamve/reaction-test
I built it based on Paypal package but no matter how hard I try I am not able to debug my mistake.
My test is a dummy app, could someone help me with debugging it?
Goutham Veeramachaneni
@gouthamve
Mar 14 2015 08:05
And if I can fix that, my mailchimp package is almost ready. :smile:
Some how Template is undefined. Google told me it had something to do with iron:router but paypal is working fine.
Aaron Judd
@aaronjudd
Mar 14 2015 22:24

@Gouthamve in package.js, the load order is specified, so load the html file first:

 api.addFiles('client/test.html', ["client"]);
 api.addFiles('client/test.coffee', ["client"]);

otherwise Template.test is not defined.