Template error: check is not defined
ferhtgoldaraz opened this issue · comments
I'm trying to test this out, but I get a backtrace too cryptic for me:
Exception in template helper: ReferenceError: check is not defined
at new TutorialManager (http://localhost:3000/packages/mizzao_tutorials.js?a68228088a9e6c22c3b5ce3d3a61ef366a8020c7:306:5)
at Object.Template.tutorial.helpers.tutorialManager (http://localhost:3000/packages/mizzao_tutorials.js?a68228088a9e6c22c3b5ce3d3a61ef366a8020c7:535:37)
at http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:2994:16
at http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:1658:16
at http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3046:66
at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3679:12)
at http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3045:27
at Object.Spacebars.call (http://localhost:3000/packages/spacebars.js?3eafdd2d5d5d8f08431aa842df4b5e8142600b17:175:18)
at Template.tutorial.Spacebars.With.HTML.DIV.class (http://localhost:3000/packages/mizzao_tutorials.js?a68228088a9e6c22c3b5ce3d3a61ef366a8020c7:40:22)
at null.<anonymous> (http://localhost:3000/packages/spacebars.js?3eafdd2d5d5d8f08431aa842df4b5e8142600b17:267:18)
Looking around, this suggests that maybe it has to do with some kind of Meteor 1.2 change, but I really can't say for shure.
If it were, maybe adding check
as a dependency in this API.use
call may help solve the problem
Yep, it definitely will. Thanks for the report.
For now, meteor add check
in your project will probably make it go away.
Just encountered this as well. Maybe make a note in the README since the dependencies haven't been updated yet?
@ejolly are you using Meteor 1.3 or 1.2? Forgot about this, will try to update it shortly.
Just started using Meteor 1.3. Wasn't an issue with 1.2.