Skip to content

cordovaVersion undefined #1

@TristanPct

Description

@TristanPct

Hello,

I'm having a problem, it seems that the cordova version is not set correctly.
In the logs after compressing I have:
Building on 192.168.1.143:3000 against Cordova version undefined

Changing index.js lines 81 - 83 from:

options.cordovaVersion = cordovaVersion;

gutil.log(`Building on ${ colors.magenta(options.hostname) }:${ colors.magenta(options.port) } against Cordova version ${ colors.green(cordovaVersion) }`);

to:

options.cordovaVersion = cordovaVersion || options.cordovaVersion;

gutil.log(`Building on ${ colors.magenta(options.hostname) }:${ colors.magenta(options.port) } against Cordova version ${ colors.green(options.cordovaVersion) }`);

fixed the problem for me, I get the correct cordova version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions