Error connecting controller

I have created a form with a few Stimulus controllers. When I visited the page, there are no errors in the console, but if I navigate to another page and back again, there is a error in the console:
Error connecting controller
Error: Missing target element “companylogo” for “imageupload” controller

It seems like the Stimulus controllers are loaded twice during the second visit.

First visit:
application #starting [app:1749:21]
reveal #initialize [app:1749:21]
reveal #connect [app:1749:21]
application #start

Second visit:
reveal #disconnect [app:1749:21]
reveal #initialize [app:1749:21]
reveal #connect [app:1749:21]
reveal #disconnect [app:1749:21]
reveal #initialize [app:1749:21]
reveal #connect

Is this behaviour due to a bug in Turbo / Hotwire, or a configuration issue?

Found the solution here: Controller initialized twice when visiting from a Turbolinks page