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:
Don't worry; it gets easier after this!
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.
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.
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.
Best AnswerThanks, 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.
Best Answeryes on a versa
Best AnswerMaybe the penny has dropped, for me. Does your Studio (I assume) project contain a 'widget.defs' file?
Best Answeryes it does
Best Answer<svg>
<defs>
<link rel="stylesheet" href="styles.css" />
<link rel="import" href="/mnt/sysassets/system_widget.defs" />
</defs>
</svg>
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:
Don't worry; it gets easier after this!
Thank you, that's done the trick
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
🙂