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

Card not showing #124

Open
Kateriine opened this issue Feb 12, 2024 · 0 comments
Open

Card not showing #124

Kateriine opened this issue Feb 12, 2024 · 0 comments

Comments

@Kateriine
Copy link

img 2024-02-12 à 09 27 00
On Chrome 121.0.6167.160 , with HA latest versions, and card 6.1.3, shadowRoot is empty, so it's giving some errors:

Uncaught TypeError: Cannot read properties of null (reading 'offsetWidth')
at hi.getColorPickerWidth (index.js:81:48)
at hi.setColorWheels (index.js:54:35)
at index.js:233:12

In index.js:

const elem = this.shadowRoot.querySelector('.light-entity-card');
const width = elem.offsetWidth;

reactive-element.js:6 Uncaught (in promise) TypeError: (intermediate value)(intermediate value)(intermediate value).importNode is not a function
at t.value (lit-html.ts:1122:52)
at t.value (lit-html.ts:1528:33)
at t.value (lit-html.ts:1375:12)
at lit-html.ts:2169:8
at hi.value (lit-element.ts:165:24)
at hi.performUpdate (reactive-element.js:6:4849)
at hi.scheduleUpdate (reactive-element.js:6:4496)
at hi._$Ej (reactive-element.js:6:4404)

In lit.html.ts:
const fragment = (options?.creationScope ?? d).importNode(content, true);

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

1 participant