Custom element doesn't exist: secondaryinfo-entity-row

Try this:

  1. move your resources from ui-lovelace.yaml to configuration.yaml (if you use yaml)
  2. install lovelace-card-preloader (ideally from HACS)
  3. Add the correct resource to configuration.yaml
  4. add the following to your ui-lovelave.yaml below title
preload:
  - [name of the card showing in red]

if you’re using dashboards, make sure you add this to each dashboard file

Check this post for more info: