Card-mod plugin - error

I’ve installed card-tools plugin and then card-mod plugin.

I’ve set in ui-lovelave.yaml

  - url: /community_plugin/lovelace-card-tools/card-tools.js
    type: module  

  - url: /community_plugin/lovelace-card-mod/card-mod.js
    type: module

I then tried a simple example:

        - type: entities
          show_header_toggle: false
          style: |
            ha-card {
              color: red;
            - entity: sensor.myentity

But nothing happens. I debug on Chrome I get the following error:

0:1 Uncaught TypeError: Failed to resolve module specifier "card-tools/src/templates.js". Relative references must start with either "/", "./", or "../".

Anyone had the same problem, or knows how to solve it?


Got the same problem

Got the same problem! knows how to solve it?

My solution.

I’ve manually installed card-mod version 12 and card-tools version 9.

That way it works.

In the future, I’ll retry with HACS.