Minimalist dash only works after clicking on the default minimalist dash

Hi,
I have been banging my head against this all day…

I have minimalist installed. I have the default minimalist dashboards that work fine. I’ve extended the default dashboard all kinds of ways with no problem. There is just some small understanding I am missing here.

So having deemed myself an expert, and a healthy pat of the back… I tried to make my own minimalist dashboard.

I made a new file in the ui_lovelace_minimalist/dashboard directory. I then added it into my configuration.yaml file.

The dashboard shows up but my button card’s throw javascript errors in the browser console. The rest of the page shows up fine.

TypeError: Cannot read properties of undefined (reading ‘style’)
and
Uncaught (in promise) TypeError: e.setConfig is not a function

Then I click on the provided minimalist dashboard and it displays.

I click back to my own dashboard and it now works fine.

Something is getting loaded by the default minimalist template, that then lets mine work correctly. I do have the button_card_templates: !include_dir_merge_named “…/…/custom_components/ui_lovelace_minimalist/ui_minimalist/ulm_templates/” at the top of the file.

What am I missing?

lovelace:
  mode: storage
  resources:
    - url: /hacsfiles/button-card/button-card.js
      type: module
    - url: /local/community/lovelace-layout-card/layout-card.js
      type: module
    - url: /local/community/mini-graph-card/mini-graph-card-bundle.js
      type: module

  dashboards:
    mobile-console:
          mode: yaml
          title: Mobile2
          icon: mdi:power
          show_in_sidebar: true
          filename: ui_lovelace_minimalist/dashboard/mobile.yaml

EDIT: So… I got it working. I am not entirely sure how, but I know at one point the above was

lovelace:
  mode: yaml

Putting it back to YAML replicates the problem I am seeing. I originally set it to YAML because I wanted to load the resources from there. The resources match what is shown in the UI… so I am thinking HACS is loading something for minimalist that I don’t know about? Any ideas?