02-17-2021 14:34
02-17-2021 14:34
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!
Answered! Go to the Best Answer.
06-29-2023 03:56
06-29-2023 03:56
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/
06-29-2023 04:26
06-29-2023 04:26
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.
06-29-2023 12:54
06-29-2023 12:54
npx create-fitbit-app should have created a valid package.json.
09-19-2023 16:39
09-19-2023 16:39
Here's a link to the SDK5 blog announcement.