Thanks for making it difficult to develop a watch face!
- I added fitbit-cli dependency
- I ran "npm-install"
- I ran "npx fitbit-build" and I got following error:
[error][app] local-storage is imported by app/index.js, but could not be resolved
[error][app] Error: Compile failed.
(The watchface was compiling and working into Fitbit Studio...)
Answered! Go to the Best Answer.
Best AnswerI recommend using the file system API for that. I'm really surprised that Studio allowed the use of local-storage in app/index.js.
I don't think you should be importing localStorage in app/index.js, which is destined to run on the watch. I think it should only be imported in companion/index.js.
It's slightly possible that it might work on the watch due to recent undocumented changes, but I wouldn't go there unless critically necessary.
Best AnswerI want to store preferences into watch 'cause the Versa 3 have connection issues and stay more time disconnected from phone than connected...
It is not fair that they discontinue the Fitbit Studio and give us a replacement that does not meet the same characteristics, breaking our developments...
Best AnswerI recommend using the file system API for that. I'm really surprised that Studio allowed the use of local-storage in app/index.js.