Open TadyTheFish opened 2 years ago
Currently on vacation... and very busy otherwise. So hope I find time to look into this.
Hi ... I found a view minutes. Upgraded to Node-Red 3.0.2 (latest) and Dashboard 3.1.7 But I can't reproduce your error.
What version of my node do you use?
All looks fine to me. I assume the error message coming from the browser log?
Looks like something in the options is not defined and there might be a sanity check missing. Can you try a "fresh" node with basic options (not to complicated)
I need to uograde nodered it seems.. NR version is 2.14
Not necessarily. On my live machine it is running on Node-Red 2.2.2. But an update of node-red, the dashboard and the color-picker node is always a good thing. Did it worked before or is this the first time you use the color picker?
Depending on your version of the color picker you should get a console log (before the error):
No console log... No this is the first time using the node. I thought it was fighting with the same colorpicker that I already have. It's the same one, but it is in a template node and the js is in the public folder. But I don't think that it is the problem
The installation caused a crash of node-red and I can't restart node-red. Had to manually remove the package.
Here the console log:
`node-red start 27 Aug 20:33:56 - [info]
27 Aug 20:33:56 - [info] Node-RED version: v3.0.2
27 Aug 20:33:56 - [info] Node.js version: v16.16.0
27 Aug 20:33:56 - [info] Linux 5.15.56+ arm LE
27 Aug 20:34:12 - [info] Loading palette nodes
27 Aug 20:34:24 - [info] Dashboard version 3.1.7 started at /ui
27 Aug 20:34:26 - [red] Uncaught Exception:
27 Aug 20:34:26 - [error] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:372:5)
at validateString (node:internal/validators:120:11)
at Object.join (node:path:1172:7)
at Immediate.
@J-Maertens I don't see how this is related to the original post. Lately I tested it with all recent versions with now issues.
Can you give me a little background? Did it crash after the installation? Anything that help me reproduce your problem.
Thanks for taking a closer look. Yes, it happened during the installation via the dashboard.
hardware: Raspberry Pi Zero W OS: Raspbian GNU/Linux 11 (bullseye) (Lite) node version: 16.16.0 Node-red version: 3.0.2 dashboard version: 3.1.7
Here's the logging inside the dashboard during installation until node-red crashes:
2022-08-31T21:23:47.109Z install : node-red-contrib-ui-iro-color-picker 0.1.6
2022-08-31T21:23:47.233Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-ui-iro-color-picker@0.1.6
2022-08-31T21:23:58.211Z [err] npm
2022-08-31T21:23:58.222Z [err]
2022-08-31T21:23:58.223Z [err] WARN
2022-08-31T21:23:58.236Z [err] config production Use --omit=dev
instead.
2022-08-31T21:24:34.507Z [out]
2022-08-31T21:24:34.507Z [out] added 1 package in 37s
2022-08-31T21:24:34.590Z rc=0
I have the same issue on Node.js v18.20.2 & node-red v3.1.5 & node-red-dashboard v3.6.2. I'm on Linux using Chrome.
It doesn't work on my dash v3.1.2
app.min.js:150 TypeError: Cannot read properties of undefined (reading 'options') at eval (eval at <anonymous> (app.min.js:592:666), <anonymous>:117:94) at Array.forEach (<anonymous>) at createIro (eval at <anonymous> (app.min.js:592:666), <anonymous>:114:41) at $scope.init (eval at <anonymous> (app.min.js:592:666), <anonymous>:204:33) at fn (eval at compile (app.min.js:274:164), <anonymous>:4:2376) at b.$eval (app.min.js:177:180) at Object.pre (app.min.js:325:8) at app.min.js:38:134 at Ca (app.min.js:111:361) at p (app.min.js:95:149) '<div class="iro-color-container" id="iro-color-container-2548978da2119bf9" style="display:flex; flex-direction: row;" ng-init="init({"id":"2548978da2119bf9","type":"ui_iro-color-picker","z":"f06733abc9f360ba","group":"bbc3532f.41ca7","order":2,"width":10,"height":9,"name":"","label":"","placement":"left","hAlign":"flex-start","vAlign":"flex-start","stateField":"payload","enableField":"enable","layoutDirection":"vertical","widgetIndent":"3","buttonWidth":"2","pickerType":"widget","popupWidth":0,"popupHeight":0,"pickerSize":"100","backgroundDim":"50","backgroundColor":"#000000","backgroundVariable":false,"components":[],"format":"hex","outFormat":"rgb","dynOutput":"input:move","outputConfirmed":false,"outputLimit":"10","passthru":false,"topic":"topic","topicType":"msg","iroColorValue":"#ffffff","x":490,"y":620,"wires":[[]],"groupId":"bbc3532f.41ca7","site":{"sizes":{"sx":64,"sy":64,"gx":1,"gy":1,"cx":0,"cy":0,"px":0,"py":0},"theme":{"base-color":{"default":"#80ff00","value":"#80ff00","edited":true},"page-titlebar-backgroundColor":{"value":"#008000","edited":true},"page-backgroundColor":{"value":"#333333","edited":true},"page-sidebar-backgroundColor":{"value":"#333333","edited":true},"group-textColor":{"value":"#80ff00","edited":true},"group-borderColor":{"value":"#333333","edited":true},"group-backgroundColor":{"value":"#333333","edited":true},"widget-textColor":{"value":"#c0c0c0","edited":true},"widget-backgroundColor":{"value":"#80ff00","edited":false},"widget-borderColor":{"value":"#333333","edited":true},"base-font":{"value":"Arial Black,Arial Black,Gadget,sans-serif"}}},"ui_control":{"color":"#ffffff","borderWidth":0,"borderColor":"#ffffff","padding":6,"margin":12,"handleRadius":8,"activeHandleRadius":8,"handleSvg":null,"handleProps":{"x":0,"y":0},"wheelLightness":true,"wheelAngle":0,"wheelDirection":"anticlockwise","sliderSize":28},"labelProperties":{"width":0,"height":9,"indent":0,"placement":"left","x":0,"y":-12},"widgetProperties":{"width":10,"height":9,"x":628,"y":-12},"iroProperties":{"scale":1,"x":628,"y":-12,"width":10,"height":9,"iroWidth":628},"frontendOutFormat":"rgb"})">' (anonymous) @ app.min.js:150 (anonymous) @ app.min.js:121 Ca @ app.min.js:111 p @ app.min.js:95 g @ app.min.js:87 (anonymous) @ app.min.js:86 (anonymous) @ app.min.js:592 $digest @ app.min.js:174 $apply @ app.min.js:177 (anonymous) @ app.min.js:221 dispatch @ app.min.js:20 v.handle @ app.min.js:20