Giter Club home page Giter Club logo

Comments (2)

JcBernack avatar JcBernack commented on June 27, 2024 1

You can't use the ES6 arrow function here, use a normal function because the this-context is needed.

Am 22.04.2016 um 11:28 schrieb Mạnh Hai Lúa [email protected]:

import {ReactiveAggregate} from 'meteor/jcbernack:reactive-aggregate';

This is my publish function.

Meteor.publish('skills', () => {
return ReactiveAggregate(this, Skills, [
{$match: {status: 'active'}},
{$limit: 10}
]);
});

And in the meteor console I got this:
I20160422-16:12:21.076(7)? Exception from sub skills id RE76noLCSJ2LeaYeh TypeError: Object [object global] has no method 'added'
I20160422-16:12:21.078(7)? at packages/jcbernack_reactive-aggregate/aggregate.js:17:1
I20160422-16:12:21.079(7)? at Array.forEach (/home/manhpt/.meteor/packages/es5-shim/.4.5.10.ajfzqv++os+web.browser+web.cordova/npm/node_modules/es5-shim/es5-shim.js:435:21)
I20160422-16:12:21.080(7)? at update (packages/jcbernack_reactive-aggregate/aggregate.js:15:1)
I20160422-16:12:21.081(7)? at ReactiveAggregate (packages/jcbernack_reactive-aggregate/aggregate.js:47:1)
I20160422-16:12:21.083(7)? at Subscription._handler (imports/api/skills.js:20:12)
I20160422-16:12:21.084(7)? at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1704:12)
I20160422-16:12:21.085(7)? at Subscription._runHandler (packages/ddp-server/livedata_server.js:1026:17)
I20160422-16:12:21.086(7)? at Session._startSubscription (packages/ddp-server/livedata_server.js:845:9)
I20160422-16:12:21.088(7)? at Session.sub (packages/ddp-server/livedata_server.js:617:12)
I20160422-16:12:21.089(7)? at packages/ddp-server/livedata_server.js:551:43

My app was fine but the result of subscribe method became empty. The problem happend the same to collection:users Meteor.users.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

from meteor-reactive-aggregate.

manhhailua avatar manhhailua commented on June 27, 2024

Thank you! Problem's solved!
Hope you will update this package soon!

from meteor-reactive-aggregate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.