Oops, the post cut out part of my text.
I said my problem was that I had an extra
<listed item> but when I put “l” and “i” inside brackets it disappears. see end of last post.
So the error
'this.$firstLink' is null
is caused by simple incorrect html syntax.