While investigating an issue with Blockly - it only seems to happen if its running in Docker.
opened 02:46AM - 30 Dec 23 UTC
Hi, I just tried out the Blockly node and I like the concept. But I have the iss… ue you can see in the gif. When I click on something where I would expect a div switching for an editable component the node instead starts dragging and I can not drop it anymore without closing the editor.
![Node_Red_Blockly_Text_Box_Click](https://github.com/bartbutenaers/node-red-contrib-blockly/assets/2019114/47b4a73b-b0b3-4367-887f-2311acc6a238)
The Javascript console gives the following error:
![image](https://github.com/bartbutenaers/node-red-contrib-blockly/assets/2019114/b646aa1e-70a4-4abd-a0f9-577b9d726e44)
NodeRed version is 3.1.3 and node-red-contrib-blockly at 2.4.0
Happens with Firefox and Chrome. Any Ideas?
So I installed Docker image on my Pi5 and noticed that it uses node.js 16
Welcome to Node-RED
===================
1 Jan 12:10:18 - [info] Node-RED version: v3.1.3
1 Jan 12:10:18 - [info] Node.js version: v16.20.2
1 Jan 12:10:18 - [info] Linux 6.1.0-rpi7-rpi-2712 arm64 LE
1 Jan 12:10:18 - [info] Loading palette nodes
1 Jan 12:10:19 - [info] Settings file : /data/settings.js
1 Jan 12:10:19 - [info] Context store : 'default' [module=memory]
1 Jan 12:10:19 - [info] User directory : /data
1 Jan 12:10:19 - [warn] Projects disabled : editorTheme.projects.enabled=false
1 Jan 12:10:19 - [info] Flows file : /data/flows.json
1 Jan 12:10:19 - [info] Server now running at http://127.0.0.1:1880/
1 Jan 12:10:19 - [warn]
I've no idea if this is the cause but just wondering if the Docker image is up-to-date?
Yes it is. (V4 will support node 20 and 18)
My follow up is then - is it possible to upgrade the node.js version inside of container that I'm running to see if that is the cause of the Blockly issue?
I dont use Docker but from i read in the Image Variations section of the node-red docker docs
the version of nodejs depends on the image tag
that you use to spin up the container.
For example if you use
docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red:latest-minimal
using the latest-minimal
tag comes with nodejs version 16
but you have a list of different image tags like 3.1.3-18
that comes with nodejs 18
2 Likes
Thanks - did that and it loads V18 (didn't make any diff to the issue I was testing but at least it's not down to the node.js version
2 Likes
system
Closed
15 January 2024 14:57
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.