Meteor Error Exited with code: 8 - TypeError: Object [object Object] has no method 'config'


#1

Help request posted on Stackoverflow: Meteor Error Exited with code: 8 - TypeError: Object [object Object] has no method ‘config’

I build an app with Meteor-Kitchen and when I run Meteor I have an error msg “==> Exited with code: 8” with the following detail:

W20150705-10:58:18.867(1)? (STDERR)
/Users/bruno/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150705-10:58:18.867(1)? (STDERR) throw(ex);
W20150705-10:58:18.867(1)? (STDERR)       ^
W20150705-10:58:18.867(1)? (STDERR) TypeError: Object [object Object]
has no method 'config'
W20150705-10:58:18.867(1)? (STDERR)     at app/server/server.js:3:10
W20150705-10:58:18.867(1)? (STDERR)     at app/server/server.js:291:3
W20150705-10:58:18.867(1)? (STDERR)     at /Users/bruno/Corporate/test/agily-app/.meteor/local/build/programs/server/boot.js:222:10
W20150705-10:58:18.867(1)? (STDERR)     at Array.forEach (native)
W20150705-10:58:18.868(1)? (STDERR)     at Function._.each._.forEach (/Users/bruno/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150705-10:58:18.868(1)? (STDERR)     at /Users/bruno/Corporate/test/agily-app/.meteor/local/build/programs/server/boot.js:117:5

Here is the piece of code in the file future.js: [I haven’t edited it]

"return": function(value) {
    if (this.resolved) {
        throw new Error('Future resolved more than once');
    }
    this.value = value;
    this.resolved = true;
    var callbacks = this.callbacks;
    if (callbacks) {
        delete this.callbacks;
        for (var ii = 0; ii < callbacks.length; ++ii) {
            try {
                var ref = callbacks[ii];
                if (ref[1]) {
                    ref[1](value);
                } else {
                    ref[0](undefined, value);
                }
            } catch(ex) {
                // console.log('Resolve cb threw', String(ex.stack || ex.message || ex));
                process.nextTick(function() {
                    throw(ex);
                });
            }
        }
    }

The line 245 corresponds to the command:

    process.nextTick(function() {
        throw(ex);
    });

I have reinstalled several times the app and checked compatibility of versions between Meteor, Node and Fibers (Meteor v. 1.1.0.2, Node v. 0.10.36, Fiber v.1.0.5).

Any idea how to debug the problem? I am blocked with my development :frowning:

Thanks for your help.


#2

I just created a new Meteor-Kitchen project and I have no problems running it. Can you share the following?

  1. Meteor version you are using
  2. Your Meteor-Kitchen json input-file and
  3. Your list of Meteor packages, i.e. the output of meteor list.

#3

Hi Tsega
My first project with Meteor-Kitchen went well. I don’t know why this time there is an error with methods.

  1. Versions: Meteor v. 1.1.0.2, Node v. 0.10.36, Fiber v.1.0.5

  2. Meteor-Kitchen json input file

  3. Packages:
    accounts-base 1.2.0 A user account system
    accounts-password 1.1.1 Password support for accounts
    copleykj:livestamp 1.1.7 jQuery plugin providing auto-updating timea…
    email 1.0.6 Send email messages
    iron:router 1.0.9 Routing specifically designed for Meteor
    less 1.0.14 The dynamic stylesheet language
    matb33:collection-hooks 0.7.13 Extends Mongo.Collection with before/after…
    meteor-platform 1.2.2 Include a standard set of Meteor packages i…
    mizzao:bootboxjs 4.4.0 Programmatic dialog boxes using Twitter’s b…
    mrt:moment 2.8.1 Moment.js, a JavaScript date library for da…
    natestrauser:font-awesome 4.3.0 Latest version Font-Awesome loaded via CDN
    perak:joins 1.0.4 Collection joins for Meteor
    perak:user-roles 1.0.10 User roles package for Meteor
    rajit:bootstrap3-datepicker 1.4.1 Meteor packaging of eternicode/bootstrap-da…
    reactive-dict 1.1.0 Reactive dictionary
    spiderable 1.0.7 Makes the application crawlable to web spiders
    standard-app-packages 1.0.5 Moved to meteor-platform

Note that all packages were installed by Meteor and Meteor-Kitchen that I installed yesterday. No previous installation on that Mac.

Thanks for your help and msg me your contact details I would like to have your feedback on Meteor dev.

Bruno


#4

Got that bugger! In the code generated there is an Accounts collections that is being created which is replacing the Accounts global namespace used by the accounts-base package. That’s why on app/server/server.js:3:10 and app/server/server.js:291:3 the methods that are supposed to be under Accounts namespace are not there. So if you go into your code and replace:

  1. app/both/accounts.js the this.Accounts to anything other than that say this.Accounts2
  2. Follow up the same thing in app/both/joins/joins.js, app/server/collection/accounts.js giving the same name to the collection, things would work just fine.

Note: When my app was generated, I had these dot values in app/client/views/home_private/accounts/account.html in the Spacebard double curly braces, {{.name}} on line 417 for example. So better watch out for those.

Making these changes did make the app run properly for me.