You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "lmnbeyond (JIRA)" <ji...@apache.org> on 2013/11/01 03:02:21 UTC

[jira] [Created] (CB-5240) cordova ripple ios doesn't work! Object function server() has no method 'config'

lmnbeyond created CB-5240:
-----------------------------

             Summary: cordova ripple ios doesn't work! Object function server() has no method 'config'
                 Key: CB-5240
                 URL: https://issues.apache.org/jira/browse/CB-5240
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI
    Affects Versions: 3.1.0
         Environment: cordova cli version: 3.1.0-0.2.0


            Reporter: lmnbeyond


When I ran "cordova ripple ios -d", the console printed the following info:
TypeError: *Object function server(port) {*
    var projectRoot = cordova_util.isCordova(process.cwd());
    port = +port || 8000;

    if (!projectRoot) {
        throw new Error('Current working directory is not a Cordova-based project.');
    }

    var hooks = new hooker(projectRoot);
    return hooks.fire('before_serve')
    .then(function() {
        // Run a prepare first!
        return require('../cordova').raw.prepare([]);
    }).then(function() {
        launchServer(projectRoot, port);
        return hooks.fire('after_serve');
    });
} *has no method 'config'*
    at CLI.module.exports (/usr/local/lib/node_modules/cordova/src/ripple.js:26:11)
    at new CLI (/usr/local/lib/node_modules/cordova/src/cli.js:111:30)
    at Object.<anonymous> (/usr/local/lib/node_modules/cordova/bin/cordova:41:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3



--
This message was sent by Atlassian JIRA
(v6.1#6144)