Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting Started for Versa 2 Clockface/App

Can anyone provide details on how I am supposed to begin developing an app or clockface for Versa 2. I have spent a ridiculous amount of time trying to get my project to build for Versa 2 (mira). I always hit the following error:

[10:04:57][error][build] package.json One or more build targets was invalid: mira
[10:04:57][error][build] package.json Error: Project configuration is invalid

We are talking the most basic of apps at this point.

{
  "name": "my-first-clock",
  "version": "0.1.0",
  "private": true,
  "license": "UNLICENSED",
  "devDependencies": {
    "@fitbit/sdk": "~6.1.0",
    "@fitbit/sdk-cli": "^1.7.3"
  },
  "fitbit": {
    "appUUID": "9e848a64-eeb4-45a7-b047-e7c8f67a7a9f",
    "appType": "clockface",
    "appDisplayName": "My First Clock",
    "iconFile": "resources/icon.png",
    "wipeColor": "#ffffff",
    "requestedPermissions": [],
    "buildTargets": [
      "mira"
    ],
    "i18n": {},
    "defaultLanguage": "en-US"
  },
  "scripts": {
    "build": "fitbit-build",
    "debug": "fitbit"
  }
}
Best Answer
0 Votes
1 REPLY 1

Basically, you're using the wrong sdk for that watch. The current documentation doesn't apply to Versa 2. See here for more info.

Peter McLennan
Gondwana Software
Best Answer