I have an extremely similar bug. I'm trying to use the Any Button component, to avoid redundant code. However, while trying to get the List index by replacing the Button's name (more of removing it) with "".
Here's my code:
(component = Button3)
I get this error when using the replace statement for the index (it doesn't show when I'm using a number):
Unfortunately, none of the proposed solution in this thread have worked for me.