custom-sidebar icon indicating copy to clipboard operation
custom-sidebar copied to clipboard

Getting an error in the HA log - custom-sidebar.js, undefined is not an object

Open bitwon opened this issue 5 years ago • 2 comments

Getting the following error in the HA log:

hacsfiles/custom-sidebar/custom-sidebar.js:160:46 TypeError: undefined is not an object (evaluating 'getConfigurationElement(elements).cloneNode')

The code in the custom-sidebar.js is the following: function createItem(elements, item) { var cln = getConfigurationElement(elements).cloneNode(true); if (cln) { cln.querySelector("paper-icon-item").querySelector("ha-icon").setAttribute("icon", item.icon); cln.querySelector("paper-icon-item").querySelector("span").innerHTML = item.item; cln.href = item.href; cln.setAttribute("data-panel", item.item); elements.insertBefore(cln, elements.children[0]); } }

Installed version is 0.2.2, HA OS 2020.12.1.

Best Regards

bitwon avatar Dec 22 '20 11:12 bitwon

I am getting this error as well.

Claw256 avatar Jan 28 '21 03:01 Claw256

me too. :)

bsfaxi avatar Dec 26 '21 12:12 bsfaxi