Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR (MainThread) #42

Open
Vingen168 opened this issue Feb 12, 2020 · 12 comments
Open

ERROR (MainThread) #42

Vingen168 opened this issue Feb 12, 2020 · 12 comments

Comments

@Vingen168
Copy link

Vingen168 commented Feb 12, 2020

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
Copy link

Socko82 commented Feb 12, 2020

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
Copy link

Socko82 commented Feb 12, 2020

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
Copy link
Author

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
Copy link
Contributor

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

@Vingen168
Copy link
Author

Vingen168 commented Feb 12, 2020

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
Copy link
Contributor

yes...? and?

@Vingen168
Copy link
Author

and?

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

@iantrich
Copy link
Contributor

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

@Vingen168
Copy link
Author

ok, got it. /ty

@warwickbuilds
Copy link

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
Copy link

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
Copy link

GuyKh commented Mar 30, 2020

Also getting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants