David Kimura PRO said over 1 year 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"