David Kimura PRO said 9 months 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"