thomasloven / lovelace-card-tools

🔹A collection of tools for other lovelace plugins to use
MIT License
250 stars 57 forks source link

ERROR (MainThread) #42

Open Vingen168 opened 4 years ago

Vingen168 commented 4 years ago

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 "../".

Socko82 commented 4 years ago

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 commented 4 years ago

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

Vingen168 commented 4 years ago

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?

iantrich commented 4 years ago

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

Vingen168 commented 4 years ago

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  >
iantrich commented 4 years ago

yes...? and?

Vingen168 commented 4 years ago

and?

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

iantrich commented 4 years ago

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

Vingen168 commented 4 years ago

ok, got it. /ty

warwickbuilds commented 4 years ago

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?

mynameisdaniel32 commented 4 years ago

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.

GuyKh commented 4 years ago

Also getting this