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

Error getting document topmost view Fitbit SDK

ANSWERED

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

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I wonder if the problem might be an error in resources/index.view.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
4 REPLIES 4

I wonder if the problem might be an error in resources/index.view.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

I wonder whether it might make a difference if you changed your import to 

import document from 'document';
 
Best Answer
0 Votes

Thank you for the answer, it was an error in my index.gui file.

 

Greetings

Best Answer
Ah great, you found it!
Like Gondwana had assumed 🙂
Best Answer
0 Votes