Skip to content

v3-beta7: TypeError: Cannot read property 'private' of undefined on ionic cordova run --help #2092

@janpio

Description

@janpio

What version of the CLI are you using? Output of ionic --version

3.0.0-beta7

Short description of the problem:

Calling ionic cordova run --help gives this output:

> ionic cordova run --help

  Run an Ionic project on a connected device

    Usage
      $ ionic cordova run [platform]

    Inputs
      platform ................. The platform to run: ios, android

    Options
      --livereload, -l ......... Live reload app dev files from the device
      --address ................ Use specific address (livereload req.) (default: 0.0.0.0)
      --consolelogs, -c ........ Print app console logs to Ionic CLI
      --serverlogs, -s ......... Print dev server logs to Ionic CLI
      --port, -p ............... Dev server HTTP port (default: 8100)
      --livereload-port, -r .... Live Reload port (default: 35729)
      --prod ................... Create a prod build with app-scripts
      --list ................... List all available Cordova run targets
      --debug .................. Create a Cordova debug build
      --release ................ Create a Cordova release build
      --device ................. Deploy Cordova build to a device
      --emulator ............... Deploy Cordova build to an emulator
      --target ................. Deploy Cordova build to a device (use --list to see all)

    Examples
      $ ionic cordova run ios --livereload -c -s

TypeError: Cannot read property 'private' of undefined
    at inputs.filter (C:\nvm\v7.9.0\node_modules\ionic\node_modules\@ionic\cli-utils\dist\lib\command\command.js:91:31)
    at Array.filter (native)
    at HelpCommand.getCleanInputsForTelemetry (C:\nvm\v7.9.0\node_modules\ionic\node_modules\@ionic\cli-utils\dist\lib\c
ommand\command.js:90:18)
    at HelpCommand.<anonymous> (C:\nvm\v7.9.0\node_modules\ionic\node_modules\@ionic\cli-utils\dist\lib\command\command.
js:63:48)
    at Generator.next (<anonymous>)
    at fulfilled (C:\nvm\v7.9.0\node_modules\ionic\node_modules\@ionic\cli-utils\dist\lib\command\command.js:4:58)

What behavior are you expecting?

Probably only the first part of the output, not the error message.

Steps to reproduce:

  1. Install the v3-beta7 CLI
  2. Start project, go into directory
  3. Execute ionic cordova run --help

Post the output of ionic info below please

  Your system information:
    Cordova CLI: Not installed
    Ionic Framework Version: 3.0.1
    Ionic CLI Version: 3.0.0-beta7
    ios-deploy version: Not installed
    ios-sim version: Not installed
    OS: Windows 10
    Node Version: v7.9.0
    Xcode version: Not installed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions