lovelace-card-tools icon indicating copy to clipboard operation
lovelace-card-tools copied to clipboard

ERROR (MainThread)

Open Vingen168 opened this issue 4 years ago • 12 comments

these line keep popping up in my logs, what am i doing wrong?

2020-02-12 07:36:09 ERROR (MainThread) [frontend.js.latest.202001302] https://***** .duckdns.org:8123/lovelace/jol:0:0 Uncaught 2020-02-12 07:36:09 ERROR (MainThread) [frontend.js.latest.202001302] https://***** .duckdns.org:8123/lovelace/jol:0:0 Uncaught 2020-02-12 07:36:09 ERROR (MainThread) [frontend.js.latest.202001302] https://***** .duckdns.org:8123/lovelace/jol:0:0 Uncaught TypeError: Failed to resolve module specifier "card-tools/src/templates.js". Relative references must start with either "/", "./", or "../".

Vingen168 avatar Feb 12 '20 06:02 Vingen168

Same here,

dont know if I'am doing something wrong.

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

Socko82 avatar Feb 12 '20 09:02 Socko82

Same here,

dont know if I'am doing something wrong.

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

OK :-)

updating HACS to actual Version and reinstall did the trick!,

Solved for me

Socko82 avatar Feb 12 '20 12:02 Socko82

in the README, it says resources: url: /local/card-tools.js type: module

but once installed it goes to "/www/community/lovelace-card-tools/card-tools.js" and HACS add it to "- url: /community_plugin/lovelace-card-tools/card-tools.js"

so which one it the correct path?

Vingen168 avatar Feb 12 '20 13:02 Vingen168

the readme is for if you install it manually. hacs is hacs

iantrich avatar Feb 12 '20 14:02 iantrich

in HACS, it says.

< When installed, this will be located in '/config/www/community/lovelace-card-tools', you still need to add it to your lovelace configuration ('ui-lovelace.yaml' or the raw UI config editor). >

< When you add this to your lovelace configuration use this:

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

Vingen168 avatar Feb 12 '20 14:02 Vingen168

yes...? and?

iantrich avatar Feb 12 '20 16:02 iantrich

and?

where should the files goes then? what is the correct path in?

Vingen168 avatar Feb 12 '20 16:02 Vingen168

they are two different things; install path vs endpoint. the install path is /config/www/community/... the endpoint is /community_plugin/...

iantrich avatar Feb 12 '20 16:02 iantrich

ok, got it. /ty

Vingen168 avatar Feb 12 '20 16:02 Vingen168

updating HACS to actual Version and reinstall did the trick!

Solved for me

What did you do? I'm on latest version but still getting this error, all setup ok .

Failed to resolve module specifier "card-tools/src/templates.js"

I this a reference within the module code?

warwickofthegh avatar Feb 13 '20 23:02 warwickofthegh

Also seeing this, using 0.106.0.b4, was using HACS but noticed that wasn't installing all files and causing more errors, copied files from repo in manually and now getting the same:

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

Reinstall via HACS removes most files and causes more errors again.

mynameisdaniel32 avatar Feb 25 '20 10:02 mynameisdaniel32

Also getting this

GuyKh avatar Mar 30 '20 07:03 GuyKh