question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Registering of custom javascript resources broken

See original GitHub issue

Obviously, registering of the custom javascript resource valetudo-map-card.js is currently broken.

I’m using the latest Home Assistant OS, the latest Valetudo, successfully set up MQTT, and installed the Lovelace Valetudo Map Card via the recommended HACS way.

I’m pretty new to Home Assistant, so I lack the knowledge to fully understand where registering fails. I guess it’s due to a wrong path/URL. In the README it currently says the url to the JS file would be /community_plugin/lovelace-valetudo-map-card/valetudo-map-card.js while it actually should be /local/community/lovelace-valetudo-map-card/valetudo-map-card.js.

The exact same issue was reported on the Home Assistant Community Forum almost two years ago (which irritates me a bit)…

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
salim-bcommented, Aug 17, 2022

Well, as far as I understood, HACS devs don’t consider this issue (not auto-registering custom resources when Lovelace is in auto-gen mode) a bug. Thus they won’t fix it. So I tried to adapt the README enough to avoid further confusion/frustration for future users. Hopefully it’ll work and you don’t have to waste time with more issue reports like this one… 🤞😉

0reactions
TheLastProjectcommented, Aug 17, 2022

You’re changing the manual installation instructions (which you shouldn’t be running when using HACS) to HACS bugfixing instructions but… that could work.

What a weird HACS issue though…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Re: Custom JavaScript/CSS Changes - Page 2 - Instructure ...
In the notes, it mentions undocumented changes to the CSS/Javascript. It seems that those changes have broken our Resources Tab, specifically the slide...
Read more >
Failed to load resource: the server responded with a status of ...
Your files are not under the jsp folder that's why it is not found. You have to go back again 1 folder Try...
Read more >
How to Fix Render-Blocking JavaScript and CSS in WordPress
First, you need to check the box next to 'Optimize JavaScript Code' option under the JavaScript Options block. Make sure that 'Aggregate JS- ......
Read more >
4 Reasons Why Your Source Maps are Broken - Sentry Blog
You can customize the source map filename itself by specifying sourceMapFilename . // webpack.config.js module.exports = { // ... entry ...
Read more >
Using JavaScript on a Form and Within Calculations
Our support team does not provide custom code and cannot help edit, write, or design custom code for your forms. While FormAssembly does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found