For me… exiting the class seems to fix the issue.
I’ve seen this similar error happen with class names, page names, and interactions.
If it’s same problem I’ve encountered… I reported this bug several times and created a couple posts about it.
See if they sound familiar or provide any help
pretty much… you rename something… webflow makes the change on that page - but doesn’t do a gobal update - so the change doesn’t exist on the areas of the designer - but the old reference still does. When you export the code… it exports the old reference - not the new reference - and of course - blows up onExec.
or search for class rename