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

Build Error when using Doc code snippet

I am trying to test out the new 6.0 weather API found here: https://dev.fitbit.com/build/reference/companion-api/weather/

 

But when I try to build, I'm getting the following error:
TypeError: Cannot create property 'code' on boolean 'true'

  • Details: watchFiles: /project/app/index.js,/project/common/utils.js

 

It seems someone else is having a similar issue when pulling a 'working' github repo.

 

Might be something broke on a new update?

Best Answer
0 Votes
7 REPLIES 7

I'm wondering if this is an issue with the companion as I am able to get the HRM working

Best Answer
0 Votes

Are you sure the repo you're trying to build is up-to-date and complete?

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Hello. I'm not trying to build an existing repo. I created a new project and was copy/pasting code directly from the docs to check responses before implementing something. Nothing custom out of the box.

Best Answer
0 Votes

Sorry; I was thrown by the 'project/common/utils.js' message in the original post.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Ah, no worries! Yeah a bit confusing especially since the utils only contains what was already there when I created the project.. 

Best Answer
0 Votes

@jurikiin  -  the snippets using SDK 6 can be an issue, if possible test in SDK 5 first, though not all features for weather are available in 5. Found quite a few things that wouldn't work or gave obscure errors in 6.

 

Author | ch, passion for improvement.

Best Answer
0 Votes

Turns out this is happening with any code that I'm writing. I had some code work, but moved to another file for organization, and now all of a sudden I'm getting the same error. I'm not quite sure this looks like my fault. It's bizarre that I'm not hearing more about other people with issues.

Best Answer
0 Votes