08-15-2021 10:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2021 10:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Does anyone know how to resolve this please?
Answered! Go to the Best Answer.

Accepted Solutions
08-15-2021 15:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-15-2021 15:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I think that what's happening is that Studio doesn't do a very thorough job when a default SDK5/6 project is converted to a SDK 4.3 project.
The breaking changes are described here. That doc assumes you're going from SDK 4.3 to 5; since you're going the opposite direction, those changes need to go the other way.
At a guess, try this:
- Rename widget.defs to widgets.gui
- In widgets.gui, change system_widget.defs to widgets_common.gui
- Rename index.view to index.gui
Don't worry; it gets easier after this!
Gondwana Software
08-15-2021 10:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2021 10:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Building app for Fitbit Versa
Building companion
Generated an empty chunk: "index"
Error: Compile failed.
Build failed.
Sorry, this is the full error message when hitting run in the watch face app.

08-15-2021 13:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-15-2021 13:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
It usually means that an expected source code file didn't have any code in it. If app/index.js and/or companion/index.js is basically empty, try putting something like
console.log('Running!');
in them.
Gondwana Software
08-15-2021 14:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2021 14:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thank you, that worked but now its throwing up error 22 and error 2
My widget.gui and index.gui are both are both empty
Apologies this is all mew to me.
08-15-2021 15:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-15-2021 15:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
At this stage, you might find it easier by not starting from an empty project. I think that Studio and CLI both provide the option to start with a minimal working project. That would let you study what needs to be where.
Gondwana Software

08-15-2021 15:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2021 15:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks, i'm using the digital watch face project but it's just not playing ball. I've followed the instructions but no joy. I'll keep trying.

08-15-2021 15:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-15-2021 15:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
SDK 4.3, I assume?
Gondwana Software

08-15-2021 15:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2021 15:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
yes on a versa

08-15-2021 15:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-15-2021 15:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Maybe the penny has dropped, for me. Does your Studio (I assume) project contain a 'widget.defs' file?
Gondwana Software

08-15-2021 15:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2021 15:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
yes it does

08-15-2021 15:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2021 15:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
<svg>
<defs>
<link rel="stylesheet" href="styles.css" />
<link rel="import" href="/mnt/sysassets/system_widget.defs" />
</defs>
</svg>
08-15-2021 15:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-15-2021 15:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I think that what's happening is that Studio doesn't do a very thorough job when a default SDK5/6 project is converted to a SDK 4.3 project.
The breaking changes are described here. That doc assumes you're going from SDK 4.3 to 5; since you're going the opposite direction, those changes need to go the other way.
At a guess, try this:
- Rename widget.defs to widgets.gui
- In widgets.gui, change system_widget.defs to widgets_common.gui
- Rename index.view to index.gui
Don't worry; it gets easier after this!
Gondwana Software
08-15-2021 15:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2021 15:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thank you, that's done the trick
03-27-2022 18:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-27-2022 18:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thank you Peter, much appreciated 🙂
09-26-2022 13:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-26-2022 13:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thanks Peter
I also had to edit package.json to remove some build types that got inserted. To do this I changed the name to package.txt made my edits and then names it back to package.json
🙂
