06-23-2022 12:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-23-2022 12:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
so, I copy/pasted the following code from the local storage API into my project:
import { localStorage } from "local-storage"; localStorage.setItem("myKey", "myValue"); console.log(localStorage.getItem("myKey"));
and my build output keeps throwing me this error:
TypeError: Cannot create property 'code' on boolean 'true'
- Details:
- watchFiles: /project/app/index.js
any help would be appreciated, I am really stuck!
Answered! Go to the Best Answer.
Accepted Solutions
06-23-2022 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-23-2022 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
https://dev.fitbit.com/build/guides/file-system/
Gondwana Software

06-23-2022 13:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-23-2022 13:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I think localStorage only exists in the companion API.
Gondwana Software

06-23-2022 14:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-23-2022 14:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
do you know the best way to implement local storage into a fitbit app?
*thanks for the response*

06-23-2022 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-23-2022 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
https://dev.fitbit.com/build/guides/file-system/
Gondwana Software

06-23-2022 14:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-23-2022 14:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
thanks for your time, I'll check it out!
