This will require a minimum Docker version of 19.03.9 for 32bit based systems (Arm32 or i386)
The default Node-RED Container is based on the NodeJS node:16-alpine container. This now based on Alpine 3.16 which has dropped Python2. Python2 went end of Life in April 2020 and has not received any updates since then. It really should not be being used for anything any more. As 3.0.0 is a new major release we will also be dropping Python2 entirely. Please let us know if this breaks any nodes (but also raise issues against those nodes as they need to be updated).
// Customizing the editor ( enable Monaco Editor )
editorTheme: {
projects: {
// To enable the Projects feature, set this value to true
enabled: true
},
// Monaco enable:
codeEditor: {
lib: "monaco"
}
},
....when trying to edit the function nodes it is like editing the text is disabled. I cant write anything in there. Moving the curser with the arrows or marking text seems to work. - Did I miss something ?
UPDATE: Does not matter if I remove the lines in settings.js the editor wouldn ´t work. - I am not sure if the editor even changed to Monaco since it looks the same within or without them.
You possibly have a "bad node" installed. This was seen sometime ago when monaco was first introduced. Most of the problematic contrib nodes were fixed / updated (but not all!)
That list of "known bad nodes" were all clones of one or the other and all of them had hard coded into them an old version of multiple-select.min.js that is polluting some prototype.
Could you search your .node-red directory and see if multiple-select.min.js can be found please?
/home/pi/.node-red/node_modules/node-red-contrib-miio-roborock/static/js/multiple-select.js
no version string found that looks like a header info / description of that file.
/**
* multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :).
*
* @version v1.4.2
* @homepage http://multiple-select.wenzhixin.net.cn
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
/home/pi/.node-red/node_modules/node-red-contrib-miio-roborock/static/css/multiple-select.css:
no version string found that looks like a header info / description of that file.
But how can a vacum cleaner module cause that error ?
I mean I ve hat a bit trouble with that module in the past (latest version didn t support my cleaner) so that s the only one that may not be up to date.
EDIT: I see its some vue stuff where and not coming from the plugin creator itself. how can I update without kicking the node-red-contrib-miio-roborock ?
Looking at NPM is see version 2.3.4 is published (this matches github)
BUT on the flows lib, it is still v2.3.3
I have requested a refresh and v2.3.4 should be in the palette manager within the hour.
Please watch out for an update.
Its the code they copied from a repository (rather than import the NPM module). The multiple-select NPM module had long been fixed however this node had copied the bad code into their repository.
If you want to keep that node version, then you can simply replace the old multiple-select.js v1.4.2 file with a v1.5.2 version and restart node-red. See the documented workaround: in this thread
Thanx. what will I have to update now to get the fix?
As a temporary solution I did update the two files (multiple-select.min.js / multiple-select.css). Like described in the thread you mentioned. This makes the editor work again! Yeah!
Ok, another problem happens while testing around.
I ve many of function nodes and some of them used still "var". After update it seems that all "var" are auto-deleted (just on looking into the function node or so?).
This is ONE switch... an I ve about 40 of that flows plus other
would search "var " and replace "let " for the flows file be an good idea to fix fast ?
No, the editor does not delete var keyword. It does however highlight variables that are undeclared. This was a design decision to help users write better code. If you actually want to keep using variables that are undeclared, you can switch it off in the settings file. Let me know if you want to know how to do this.
aha, ok that make sense. I think I let it like it is an fix the undeclared stuff the next months
I was sure that the editor (ace?) of V2.x didn´t let you initialize undeclared variables. hmmpf.
could you ever do: "myNewVar = 12;" without using "let" or "var" ?!