Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor: Exception in template helper: ReferenceError: Match is not defined

Tags:

meteor

I was working on a project using version 0.9.3.1 of Meteor. I've just upgraded to version 1.2.0.1 in order to resume my project.

I've installed the latest version of meteor-roles by running meteor add alanning:roles so that should be up to date. I've had a look at the docs but that hasn't really helped.

Anyone got any ideas on what this error is and how to resolve it?

Exception in template helper: ReferenceError: Match is not defined
    at Object.Roles._uiHelpers.isInRole (http://localhost:3000/packages/alanning_roles.js?0f20b892d4a0a11a6ea8431da3d0a0953ba951a9:809:10)
    at bindDataContext (http://localhost:3000/packages/blaze.js?9391df93ba5076c2cfc61ee68724eb79b65f00d9:2986:16)
    at Blaze._wrapCatchingExceptions (http://localhost:3000/packages/blaze.js?9391df93ba5076c2cfc61ee68724eb79b65f00d9:1650:16)
    at http://localhost:3000/packages/blaze.js?9391df93ba5076c2cfc61ee68724eb79b65f00d9:3038:66
    at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?9391df93ba5076c2cfc61ee68724eb79b65f00d9:3671:12)
    at wrapHelper (http://localhost:3000/packages/blaze.js?9391df93ba5076c2cfc61ee68724eb79b65f00d9:3037:27)
    at Spacebars.call (http://localhost:3000/packages/spacebars.js?1aedcc2aa3ae9ff5d860d73516110cedd77c033e:167:18)
    at Spacebars.mustacheImpl (http://localhost:3000/packages/spacebars.js?1aedcc2aa3ae9ff5d860d73516110cedd77c033e:104:25)
    at Object.Spacebars.dataMustache (http://localhost:3000/packages/spacebars.js?1aedcc2aa3ae9ff5d860d73516110cedd77c033e:136:39)
    at http://localhost:3000/app/client/layout/adminlayout.compiled.html.js?c582d42dde65584f4e6c48e70d8d65fa2cba7589:6:22
like image 848
user1532669 Avatar asked Jan 08 '23 11:01

user1532669


1 Answers

I believe that this open issue on GitHub against alanning:roles has the clue you are looking for. You may need to install the check package as it may be an undeclared dependency.

$ meteor add check
like image 162
Michel Floyd Avatar answered Jan 15 '23 04:01

Michel Floyd