rdmtc / RedMatic

Node-RED packaged as Addon for the Homematic CCU3 and RaspberryMatic ๐Ÿคนโ€โ™‚๏ธ
Apache License 2.0
535 stars 47 forks source link

redmatic-homekit-camera - Menu does not open #514

Open Tobi7889 opened 2 years ago

Tobi7889 commented 2 years ago

Hi,

if i set-up "camera" by redmatic-homekit-camera, following error in console:

Uncaught TypeError: Cannot read property 'array' of undefined at u (red.min.js:16) at Object.open (red.min.js:16) at i (red.min.js:16) at Object.show (red.min.js:16) at Object.edit (red.min.js:16) at SVGRectElement.tt (red.min.js:16) at SVGRectElement.i [as __onmouseup] (vendor.js:35) u @ red.min.js:16 open @ red.min.js:16 i @ red.min.js:16 show @ red.min.js:16 edit @ red.min.js:16 tt @ red.min.js:16 i @ vendor.js:35

DevMA99 commented 2 years ago

I can confirm the Error.

Node Red 2.0.6 both node Version v14.17.2 and v14.18.0

And also at redmatic-homekit-tv

djiwondee commented 2 years ago

@DevMA99

Node Red 2.0.6

I wonder how did you upgrade your node-red to this version on the CCU3?

cupracer commented 2 years ago

Hi, I stumbled upon this issue today, too, when I tried to set up a redmatic homekit camera. Tried a few things and upgraded to the latest versions, but that did not help.

Currently used versions:

Steps to reproduce:

  1. Drag a redmatic-homekit-camera or redmatic-homekit-tv node to any flow (other nodes seem to be unaffected).
  2. When releasing the mouse-/touchpad-button or when focussing the inserted node by single-clicking on it, the following messages appear in the browser's developer console:
    
    [Warning] RED.events.emit error: [view:selection-changed] TypeError: undefined is not an object (evaluating 'c[m]._type.array') (red.min.js, line 16)

[Warning] TypeError: undefined is not an object (evaluating 'c[m]._type.array') (red.min.js, line 16) o โ€” red.min.js:18:412679 T โ€” red.min.js:18:417010 emit โ€” red.min.js:16:20381 Ie โ€” red.min.js:18:310408 drop โ€” red.min.js:18:365965 _trigger โ€” vendor.js:10:11096 _drop โ€” vendor.js:15:12612 (anonyme Funktion) โ€” vendor.js:10:4505 (anonyme Funktion) โ€” vendor.js:15:14722 each โ€” vendor.js:2:2981 drop โ€” vendor.js:15:14546 _mouseStop โ€” vendor.js:13:28982 (anonyme Funktion) โ€” vendor.js:10:4505 _mouseUp โ€” vendor.js:13:24589 (anonyme Funktion) โ€” vendor.js:10:4505 _mouseUp โ€” vendor.js:13:29592 (anonyme Funktion) โ€” vendor.js:10:4505 (anonyme Funktion) โ€” vendor.js:13:23481 dispatch โ€” vendor.js:2:43096

3. When the first double-click is done on the node to open its properties, the following error is logged:

[Error] TypeError: undefined is not an object (evaluating 'u.defaults[o]._type.array') t (red.min.js:18:483040) R (red.min.js:18:485731) open (red.min.js:18:498024) i (red.min.js:18:610132) show (red.min.js:18:611340) edit (red.min.js:18:498656) tt (red.min.js:18:321158) i (vendor.js:35:7949)


4. Afterwards it's even not possible anymore to open the properties for any other node in any flow until the browser window/tab is reloaded (which discards unsaved changes and removes the affected node).

I'm happy to run more tests and provide data if interested.
cupracer commented 2 years ago

Btw, since I noticed a lot of Issues here are in German - I could also switch to German if that's easier. :-)