04-18-2023 14:22
04-18-2023 14:22
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.
04-18-2023 15:51
04-18-2023 15:51
I recommend using the file system API for that. I'm really surprised that Studio allowed the use of local-storage in app/index.js.
04-18-2023 15:02
04-18-2023 15:02
Are you sure that localStorage is available on the watch, and not just on the companion?
(And I assume you're trying to import localStorage rather than local-storage.)
04-18-2023 15:16
04-18-2023 15:16
I'm trying to compile it on PC before send it to the watch
04-18-2023 15:22
04-18-2023 15:22
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.
04-18-2023 15:43
04-18-2023 15:43
I 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...
04-18-2023 15:51
04-18-2023 15:51
I recommend using the file system API for that. I'm really surprised that Studio allowed the use of local-storage in app/index.js.