07-29-2022 01:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-29-2022 01:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Dear Community,
I'm working on a project with the fitbit sdk and get this error:
app/index.js:2,29[10:31:42]Error getting document topmost view
If I remove the
import * as document from "document";
the error is away, I don't know why because I changed nothing in the javascript code. And the line where the error is don't change if I remove some other imports....
I need help, JS is really confusing me...
Greetings,
Thorin
Answered! Go to the Best Answer.

Accepted Solutions
07-29-2022 01:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-29-2022 01:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I wonder if the problem might be an error in resources/index.view.
Gondwana Software

07-29-2022 01:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-29-2022 01:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I wonder if the problem might be an error in resources/index.view.
Gondwana Software

07-29-2022 04:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
07-29-2022 04:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I wonder whether it might make a difference if you changed your import to
import document from 'document';

08-02-2022 08:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-02-2022 08:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thank you for the answer, it was an error in my index.gui file.
Greetings
08-02-2022 10:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
08-02-2022 10:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Like Gondwana had assumed 🙂

