zigbee2mqtt-frontend icon indicating copy to clipboard operation
zigbee2mqtt-frontend copied to clipboard

Dev console: TypeError undefined is not an object (evaluating 'a.endpoints[r].clusters')

Open thomaskonrad opened this issue 1 year ago • 0 comments

What happened?

I tried to add support for a new device and clicked the "Dev console" tab for that unsupported device (Aeotec Range Extender Zi). I got this error:

Screenshot 2024-06-22 at 17 28 41

TypeError
undefined is not an object (evaluating 'a.endpoints[r].clusters')
render@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/ConnectedDevicePage-096eea88.js:1:30965
ab@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:6192
e3@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:39758
ITe@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:39684
ap@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:39537
cb@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:35902
CD@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:36706
Gn@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:41:3284
@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:34232

Clicking "Click here, and save this file" by the way yields this in the dev console:

Uncaught (in promise) ReferenceError: require is not defined
    at _3 (index-3cebf61c.js:62:9206)
    at Fa.downloadState (index-3cebf61c.js:75:83763)
    at Object.Jke (index-3cebf61c.js:40:9864)
    at twe (index-3cebf61c.js:40:10021)
    at awe (index-3cebf61c.js:40:10081)
    at XE (index-3cebf61c.js:40:31567)
    at a5 (index-3cebf61c.js:40:31985)
    at index-3cebf61c.js:40:36918
    at CT (index-3cebf61c.js:43:36922)
    at Aj (index-3cebf61c.js:40:8999)

What browsers are you seeing the problem on?

Chrome, Safari

Relevant stacktrace

**Current url**: http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/#/device/0x8c65a3fffe512ba1/dev-console
**Previous url**: 


**Error type**: TypeError
**Error message**: undefined is not an object (evaluating 'a.endpoints[r].clusters')



render@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/ConnectedDevicePage-096eea88.js:1:30965
ab@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:6192
e3@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:39758
ITe@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:39684
ap@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:39537
cb@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:35902
CD@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:36706
Gn@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:41:3284
@http://192.168.1.100:8123/api/hassio_ingress/heVfH-ga7YWa8Hc5lzZuRM64RtQa3WNkBAzUcNKur1g/assets/index-3cebf61c.js:43:34232

Did you download state.json.zip?

I will not attach state.json.zip

thomaskonrad avatar Jun 22 '24 15:06 thomaskonrad