Hoarding Gold - self.findNearestItem() is not a function

At the start of the level before I started editing I get an error code:

Line 5: tmp8[tmp9] is not a function.

Functions self.findNearestItem() not listed in downs menu.
What to do?

So I had the same problem when transitioning to better glasses. It isn’t really explained well but this is the same thing using your glasses:

self.findNearest(self.findItems())

It pretty much finds the nearest of all items, or what you were initially trying to do.

I put the other glases. The function appears in the menu

Sooo did I help? Or what?

Yes, I think. You say about glases.