Battery Widget failed to load after updating to KDE Plasma 6.7

KDE Plasma Battery widget error message:

qrc:/qt/qml/plasma/applet/org/kde/plasma/battery/main.qml:208:28: Type CompactRepresentation unavailable

qrc:/qt/qml/plasma/applet/org/kde/plasma/battery/CompactRepresentation.qml:89:13: Cannot assign to non-existent property "preferSymbolic"

Try running this in konsole:

sudo dnf upgrade --refresh --best --allowerasing

It fixed the problem for me, and remember to reboot after update

If you can explain the following flags to me:

  • –refresh
  • –best
    So, i can understand how the command you provided works and further add knowledge in my head.