Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A call to Random.id() within meteor/index.js #30

Closed
consideRatio opened this issue Dec 2, 2015 · 2 comments
Closed

A call to Random.id() within meteor/index.js #30

consideRatio opened this issue Dec 2, 2015 · 2 comments
Labels

Comments

@consideRatio
Copy link

I got this error:

    ReferenceError: Random is not defined

From this call within Meteor code:

    Electrify.call('hello.world', ['anderson', 'arboleya'], function(err, msg) {
        console.log(msg); // Hello anderson arboleya!
    });

The error originated from this place in meteor/index.js:

    var packet = {
            handshake: Random.id(),
            method: method,
            args: args
    };

I solved it by adding the random package to my meteor app like this:

    meteor add random

Perhaps electrify assumes that it is available to use within all meteor-codebase, but it is no longer because it has been separated as an optional package? Just speculating. I am using Meteor 1.2.1 on a Windows 7 computer.

@arboleya
Copy link
Owner

arboleya commented Dec 2, 2015

Yes, you're absolutely right, I've heard of this somewhere else.

I'm gonna include the random package as a dependency.

Thanks for reporting.

@arboleya arboleya added the bug label Dec 2, 2015
@arboleya
Copy link
Owner

arboleya commented Dec 8, 2015

Fixed in 1.2.1 - code

@arboleya arboleya closed this as completed Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants