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

Clockface build is not working in the NEW way...

ANSWERED

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...)

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
5 REPLIES 5

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.)

Peter McLennan
Gondwana Software
Best Answer
0 Votes

I'm trying to compile it on PC before send it to the watch

Best Answer
0 Votes

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.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

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...

Best Answer
0 Votes

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.

Peter McLennan
Gondwana Software
Best Answer