Error:
I20151202-23:53:08.559(1)? Exception while invoking method 'adminCheckAdmin' ReferenceError: Match is not defined
I20151202-23:53:08.559(1)? at [object Object].Meteor.methods.adminCheckAdmin (packages/yogiben_admin/lib/server/methods.coffee:76:21)
I20151202-23:53:08.559(1)? at maybeAuditArgumentChecks (livedata_server.js:1698:12)
I20151202-23:53:08.559(1)? at livedataserver.js:708:19
I20151202-23:53:08.559(1)? at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20151202-23:53:08.559(1)? at livedataserver.js:706:40
I20151202-23:53:08.560(1)? at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20151202-23:53:08.560(1)? at livedata_server.js:704:46
I20151202-23:53:08.560(1)? at tryCallTwo (/Users/joriregter/.meteor/packages/promise/.0.5.1.8idxpg++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:45:5)
I20151202-23:53:08.560(1)? at doResolve (/Users/joriregter/.meteor/packages/promise/.0.5.1.8idxpg++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:171:13)
I20151202-23:53:08.560(1)? at new Promise (/Users/joriregter/.meteor/packages/promise/.0.5.1.8idxpg++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:65:3)
I'm having this weird exception and I have no clue why. Happens when I try to visit the /admin page.
User in database: { "_id" : "Dr8JN8jLCyKXPj63Z", "createdAt" : ISODate("2015-12-02T22:42:26.435Z"), "services" : { "password" : { "bcrypt" : "$2a$10$a7vUcF50mSW6TV14DwOuY.QwMyfvnkwU5kpjeQfUtsbWm9vqzPLXG" } }, "username" : "admin", "emails" : [ { "address" : "admin@admin.com", "verified" : false } ] }
Config code: AdminConfig = { collections: { } };
Error: I20151202-23:53:08.559(1)? Exception while invoking method 'adminCheckAdmin' ReferenceError: Match is not defined I20151202-23:53:08.559(1)? at [object Object].Meteor.methods.adminCheckAdmin (packages/yogiben_admin/lib/server/methods.coffee:76:21) I20151202-23:53:08.559(1)? at maybeAuditArgumentChecks (livedata_server.js:1698:12) I20151202-23:53:08.559(1)? at livedataserver.js:708:19 I20151202-23:53:08.559(1)? at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) I20151202-23:53:08.559(1)? at livedataserver.js:706:40 I20151202-23:53:08.560(1)? at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) I20151202-23:53:08.560(1)? at livedata_server.js:704:46 I20151202-23:53:08.560(1)? at tryCallTwo (/Users/joriregter/.meteor/packages/promise/.0.5.1.8idxpg++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:45:5) I20151202-23:53:08.560(1)? at doResolve (/Users/joriregter/.meteor/packages/promise/.0.5.1.8idxpg++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:171:13) I20151202-23:53:08.560(1)? at new Promise (/Users/joriregter/.meteor/packages/promise/.0.5.1.8idxpg++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:65:3)
What am I doing wrong here?