Two answers:
The error you get, is due to a redeployment of your app, while the page is opened. this can be fixed by refreshing the browser. (note that this is only an error you get in development during local deployment. would never happen in production)
Secondly; Not having a progress bar setting on the onclick behavior; yes that would be a great feature, but won't solve the thrown error.
A work around to get a progress bar is to add a navigation list into the listview as first item using a single item and add the content in it. Make the item trigger a microflow and set the progress bar in the microflow settings