David Kimura PRO said almost 2 years ago on Dynamic Select Forms with Hotwire :
The episode should still be accurate. That error usually means that you're missing an element on the page with 
"data-dynamic-select-target": "secondarySelect"