Meteor update 1.8.2 getting error locally

working perfectly on the cloud but almost nothing works locally !!!

=> App running at: http://localhost:3000/
Type Control-C twice to stop.

I20191125-19:26:14.060(1)? Exception while invoking method ‘checkListingCount’ TypeError: Cannot read property ‘listings’ of undefined
I20191125-19:26:14.268(1)? at MethodInvocation.checkListingCount (server/methods/listings_server.js:204:26)
I20191125-19:26:14.274(1)? at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1771:12)
I20191125-19:26:14.277(1)? at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)I20191125-19:26:14.279(1)? at Meteor.EnvironmentVariable.EVp.withValue (packages\meteor.js:1234:12)
I20191125-19:26:14.284(1)? at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)I20191125-19:26:14.288(1)? at Meteor.EnvironmentVariable.EVp.withValue (packages\meteor.js:1234:12)
I20191125-19:26:14.290(1)? at Promise (packages/ddp-server/livedata_server.js:715:46)
I20191125-19:26:14.295(1)? at new Promise ()
I20191125-19:26:14.298(1)? at Session.method (packages/ddp-server/livedata_server.js:689:23)
I20191125-19:26:14.301(1)? at packages/ddp-server/livedata_server.js:559:43

This is a normal javascript error.

You are trying to use a variable like results.listings but results is undefined

Not an issue with Meteor 1.8.2

2 Likes

Oooh. Yes. Right. Thanks.