Ajax does not work in forms. I'm using Ajax callbacks in a form and they were working fine until I moved a few things around in some template files. The drupalSettings variable is getting set and shows up when I view source, but the ajax key is missing and I can't for the life of me figure out why it's not getting called.

Things I've tried:

theme.info.yml has the follow dependencies:
dependencies:
- core/jquery
- core/drupalSettings
- core/drupal.ajax
- core/drupal

The library in the theme has those same dependencies.

Is there somewhere else I need to add a dependency?