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.

[0.106.0b0] Uncaught TypeError: Cannot assign to read only property 'index' of object

See original GitHub issue

Since the new beta 0.106.x I get this error in my frontend:

mini-graph-card-bundle.js:1 Uncaught TypeError: Cannot assign to read only property 'index' of object '#<Object>'
    at mini-graph-card-bundle.js:1
    at Array.forEach (<anonymous>)
    at HTMLElement.set hass [as hass] (mini-graph-card-bundle.js:1)
    at HTMLElement.value (hui-view.ts:61)
    at HTMLElement.value (hui-view.ts:337)
    at HTMLElement.<anonymous> (hui-view.ts:68)
    at r (fire_event.ts:76)
    at create-element-base.ts:72 

Also lovelace does not display anything anymore. When I remove mini graph card js, the error is gone and lovelace loads normal again.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidFW1960commented, Feb 20, 2020

I’m clearly cleverer than I thought I am as I managed to build it and it seems to be working…

1reaction
kalkihcommented, Feb 19, 2020

Thanks, will have a look at the changed this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot assign to read only property
When you use Object.defineProperties , by default writable is set to false , so _year and edition are actually read only properties.
Read more >
Cannot assign to read only property of Object in JavaScript
The error "Cannot assign to read only property of object" occurs when we try to change a property of an object that has...
Read more >
Cannot assign to read only property '0' of object '[object Array]'
Hi guys, Having this really strange error in several of my cards after updating to latest release ! Thing is, right after I...
Read more >
TypeError: "x" is read-only - JavaScript - MDN Web Docs
The JavaScript strict mode-only exception "is read-only" occurs when a global variable or object property that was assigned to is a read-only property....
Read more >
Uncaught TypeError: Cannot assign to read only property &#38
Nothing fancy here. The line where this error occurs - "object" === ("undefined" == typeof exports ? "undefined" : l(exports)) && void ...
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