Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

afterPrepareHook function "parseOptionsFromConsole" throwing a typeerror #48

@dannypritchard

Description

@dannypritchard

In afterPrrepareHook.js, the function parseOptionsFromConsole throws a typeerror on line 60 when I type in terminal
cordova run ios --device

This is preventing the deploy script from deploying the app to the ios device I have attached via USB.

If I console.log consoleOptions before the for loop begins, the contents of this object is:
{ device: true, argv: [] }

By the looks of it, the indexOf check is expecting a string, but is getting a boolean.

As a workaround I've put a typeof opt === 'string' check into the if statement on line 60, but I think something fishy is going on here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions