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

Fitbit Versa 2 development issue

ANSWERED

Hi Everyone,

 

I am testing the Fitbit CLI development, but when I try to compile a simple project, I see the following issue.

[23:21:26][error][build] package.json One or more build targets was invalid: mira
[23:21:26][error][build] package.json Error: Project configuration is invalid

 

My target is defined as:

 "buildTargets": [
      "mira"
    ],

 

and my dependencies are defined as:

"devDependencies": {
    "@fitbit/sdk": "~4.2.0",
    "@fitbit/sdk-cli": "^1.7.3"
  },

 

It seems that everything must be okay, but this error indicates that mura is not a correct buildTarget. Mura is the target for Versa2 which is the watch I want to develop applications for.

 

Have you seen such issue and how have you resolved it?

 

Thank you for your help!

Best Answer
0 Votes
23 REPLIES 23

I'm not sure if I have. I don't do regular programming work so I just followed the instructions on getting started of installing node, nvm and the rest. 

I've followed the instructions on this and this is where I've ended up:
https://dev.fitbit.com/getting-started/

 

Best Answer
0 Votes

Hi @statsdata - you need to be in the route of the project folder for any instructions and there you will find the "package.json" file, if it exists. Note @Gondwana's very good help post earlier in this topic.

Author | ch, passion for improvement.

Best Answer

npx create-fitbit-app should have created a valid package.json.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Here's a link to the SDK5 blog announcement.

Peter McLennan
Gondwana Software
Best Answer