@knolleary - I "suddenly" have a need for the mermaid diagrams - is there a way to theme them ? (never understood their default themes they are horrible imo).
edit - including the theme above the diagram is possible i see, but a global config would be nice
It does not accept the options with the following message:
No overload matches this call.
Overload 1 of 3, '(locales?: LocalesArgument, options?: DateTimeFormatOptions): string', gave the following error.
Argument of type '{ year: string; day: string; month: string; hour: string; minute: string; }' is not assignable to parameter of type 'DateTimeFormatOptions'.
Types of property 'year' are incompatible.
Type 'string' is not assignable to type '"numeric" | "2-digit"'.
Overload 2 of 3, '(locales?: string | string[], options?: DateTimeFormatOptions): string', gave the following error.
Argument of type '{ year: string; day: string; month: string; hour: string; minute: string; }' is not assignable to parameter of type 'DateTimeFormatOptions'.(2769)
Good catch. There seems to be an error in Monaco that sets that to an error even though, if you deploy and run, it actually works just fine. But the error marks the function node as being in error of course.
Is het possible to update the NodeJS versions used in the docker-releases (see table)?
Add containers based on NodeJS v20. (Containers with NodeJS v14 can be removed).
Have the default containers be based on NodeJS v18 in stead of NodeJS v16.
Adding NodeJS v20 would be in line with the advise to use v18 or v20. And we don't need to wait for Node-RED v4.0 - which will not work with NodeJS v16 - to have the default container already move to NodeJS v18.
Thx, already to hardillb.
PS: I ask it here, because it was asked in the issue template not to raise an issue but post it here. If I am wrong, sorry, be nice to me :-).
We aren't going to change the default container's base node.js version until Node-RED 4.0 - as that would be a breaking change for anyone pulling latest.
We can certainly look at adding Node20 to the build matrix of 3.1.0.
Hi I upgraded my docker version to 3.1.0 and it removed every node I had installed in my pallet leaving just Node-Red I have tried to re-add them but the install fails. I don't know what to do now I'm hoping I haven't just lost 18 months of work? Has anyone else had this happen, I don't see any mention of it anywhere?
Surely you backed up your flows before attempting an upgrade?
Btw, updating a docker image would not affect the bound data directory - assuming you had a bound data directory and weren't storing data inside the container?
Hi Steve, yes I have a daily backup of my flows but in fact the flows are intact but just showing the missing nodes with dotted red lines. I think that if I can re-install the nodes it will burst into life again. I just wanted to understand what had happened really before I started changing or overwriting from a backup from a previous version.
Open a shell in the container, go to your node-red folder (where the flows file is) and run npm install node-red-contrib-bigtimer
and paste the result here.
Firstly thank you so much for assisting me with this, I have a server running the docker and I am looking into how to do what you suggested here, at the moment I open a shell console via the GUI but it does not allow me to enter any commands. I have a guy who set the server up and is better at UnRaid and Unix than I am so I’ll ask him how to do that and get right back to you as soon as I can.
I did that and it appeared to install BigTimer rather than fail - but when I went into NodeRed it still wasn’t there. I had to do that in Chrome because in Safari I cannot type into the console or the terminal windows anymore!
So I then opened NodeRed in Chrome and I found that I could install the BigTimer node from the Pallet dialogue so it appears that NodeRed no longer functions correctly in Safari and the install did delete all of my Pallet nodes. However I can now re-install them all (slowly) using Chrome.