Command 'Monkey C: Edit Products' resulted in an error (Cannot read properties of undefined (reaching 'each'))

Hello ALL,

Here's what I get when using 'Monkey C: Edit Products' on a fresh Connect IQ + VS Code install:

Is this a bug or a feature or StupidUserException?

Kind regards,
H. S. Paradoxus

  • As per the discussion here, this might be happening because you're trying to build the Analog sample, which has a bunch of devices pre-configured, but you haven't downloaded all of those devices.

    You could try:

    - downloading all the devices

    or

    - editing manifest.xml by hand - comment out or delete the devices you don't want to build / download.

    The Analog sample's manifest.xml looks like this:

    <!-- This is a generated file. It is highly recommended that you DO NOT edit this file. --><iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="1">
        <iq:application entry="AnalogWatch" id="98153CD986EFAB64CDA0954834618412" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="1.2.0" name="@Strings.AppName" type="watchface">
            <iq:products>
                <iq:product id="approachs60"/>
                <iq:product id="d2bravo"/>
                <iq:product id="d2bravo_titanium"/>
                <iq:product id="d2charlie"/>
                <iq:product id="descentmk1"/>
                <iq:product id="epix"/>
                <iq:product id="fenix3"/>
                <iq:product id="fenix3_hr"/>
                <iq:product id="fenix5"/>
                <iq:product id="fenix5s"/>
                <iq:product id="fenix5x"/>
                <iq:product id="fenix6"/>
                <iq:product id="fenixchronos"/>
                <iq:product id="fr230"/>
                <iq:product id="fr235"/>
                <iq:product id="fr630"/>
                <iq:product id="fr735xt"/>
                <iq:product id="fr920xt"/>
                <iq:product id="fr935"/>
                <iq:product id="vivoactive"/>
                <iq:product id="vivoactive3"/>
                <iq:product id="vivoactive_hr"/>
            </iq:products>
            <iq:languages>
                <iq:language>eng</iq:language>
            </iq:languages>
        </iq:application>
    </iq:manifest>