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

SDK 4.2 error

When I run my clock face, I get a error for index.ha that says “myImg not defined” please help!

Best Answer
0 Votes
1 REPLY 1

It's hard to say without seeing code, but I imagine you have something like this in your app/index.js

var myImg = document.getElementById("myImg");

In order for that to work, you'd need to have an image declared in your svg file like this:

<image id="myImg" href="something.png" />

 

Best Answer
0 Votes