hass-browser_mod: Browser_mod side panel not loading on HA 2025.1
My Home Assistant version: 2025.1.0b0
What I am doing: just using HA
What I expected to happen: Browser-mod side panel to be usable
What happened instead: It’s a blank screen with an error in the console
Minimal steps to reproduce: Upgrade to HA 2025.1.*
Error messages from the browser console:
Uncaught (in promise) TypeError: document.createElement(...).getRoutes is not a function
at $e (browser_mod.js:66:1675)
$e @ browser_mod.js:66
await in $e
(anonymous) @ browser_mod.js:231
(anonymous) @ browser_mod.js:66
Ke @ browser_mod.js:385
(anonymous) @ browser_mod.js:385
browser_mod_panel.js:263 Uncaught (in promise) TypeError: document.createElement(...).getRoutes is not a function
at browser_mod_panel.js:263:477
(anonymous) @ browser_mod_panel.js:263
await in (anonymous)
(anonymous) @ browser_mod_panel.js:263Understand this errorAI
browser_mod_panel.js:439 Uncaught (in promise) TypeError: document.createElement(...).getRoutes is not a function
at browser_mod_panel.js:439:373
By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:
-
Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
-
Have made sure I am using the latest version of the plugin.
-
Have followed the troubleshooting steps of the “Common Problems” section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
-
Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 23 (3 by maintainers)
Commits related to this issue
- Update browser_mod.js Fixes issue #770 — committed to Happy-Cadaver/hass-browser_mod by Happy-Cadaver 2 years ago
- Update browser_mod_panel.js Fixes issue #770 — committed to Happy-Cadaver/hass-browser_mod by Happy-Cadaver 2 years ago
I think it’s been changed to “_getRoutes” now so just needs updating to match the new function name
https://github.com/home-assistant/frontend/commit/677b3249ea85d596b310be1cee99a913bebf40fb#diff-96bcf724f5d6dc1edac61c2f37defc20b4c0ab3ca5ce9f8d50e217bd32388010
https://github.com/search?q=repo%3Athomasloven%2Fhass-browser_mod getRoutes&type=code
If you replace “getRoutes” with “_getRoutes” in browser_mod.js and browser_mod_panel.js, clear your cache, reload, etc it will work.
Created a PR for this issue.
Just a quick FYI: maybe it’s because I’m not running the most recent version of Home-Assistant (I have 2024.12.2), but for me _getRoutes doesn’t exist and I had to change back to getRoutes without the _ . After doing that it works.
… so note to self -> if nothing works next time I update, it’s because of this 🤣
In case none of the steps you applied below work (this was my case even after clearing the cache): Delete the two .gz files located in custom_components/browser_mod/ :
I don’t know if these two files are present for everyone (maybe through HACS), but they were the ones preventing the changes made to the “.js” files from being applied.