[Bugfix Release] node-red-contrib-uibuilder v4.1.4

Hi all, a small set of bugfixes for uibuilder v4.

4.1.3

Fixed

  • Issue #155 Cannot edit files in a uibuilder instance's root folder.

4.1.2

Fixed

  • PR #152 nodes/libs/uiblib.js incorrectly called jwtValid instead of validJwt. Thanks to Lackmann1994 for the PR to fix.
1 Like

Julian .. i noticed an issue when we delete a uibuilder node and we are presented with the message to also Delete the folder. if we click yes to delete .. it doesnt delete it .. running Windows 10 (didnt have a chance to test on my RPi).

Hi Andrew, if you get a chance, can I ask you to raise an issue on GitHub so I don't forget to fix it?

Thanks.

Another bug fix - this time for the external templates feature which had stopped working for some reason (due to degit it seems).

Should now be working again.

Sorry if this is the wrong place.... i tried to install 4.1.4 today (Palette manager)

30 Oct 15:25:44 - [info] Starting flows
30 Oct 15:25:44 - [info] Started flows
30 Oct 15:25:44 - [info] Server now running at http://127.0.0.1:1880/
30 Oct 15:25:44 - [info] [mqtt-broker:Mosquitto on 102] Connected to broker: mqtt://192.168.66.102:1883
30 Oct 15:29:13 - [info] Installing module: node-red-contrib-uibuilder, version: 4.1.4
30 Oct 15:29:29 - [info] Installed module: node-red-contrib-uibuilder
Trace: [uibuilder] REQUIRE SOCKET failed:: /home/pi/.node-red/node_modules/node-red-contrib-uibuilder/nodes/libs/socket.js:42
constructor() {
^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/.node-red/node_modules/node-red-contrib-uibuilder/nodes/uibuilder.js:38:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object. (/home/pi/.node-red/node_modules/node-red-contrib-uibuilder/nodes/uibuilder.js:40:13)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at loadNodeSet (/usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js:361:17)
at /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js:459:31
Trace: [uibuilder] REQUIRE WEB failed:: /home/pi/.node-red/node_modules/node-red-contrib-uibuilder/nodes/libs/web.js:47
constructor() {
^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/.node-red/node_modules/node-red-contrib-uibuilder/nodes/uibuilder.js:43:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object. (/home/pi/.node-red/node_modules/node-red-contrib-uibuilder/nodes/uibuilder.js:45:13)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at loadNodeSet (/usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js:361:17)
at /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js:459:31
30 Oct 15:29:30 - [info] Added node types:
30 Oct 15:29:30 - [info] - node-red-contrib-uibuilder:uibuilder : TypeError: Cannot read property 'setup' of undefined (line:289)

What version of Node.js are you running?

v10.24.0 on Raspian

Thanks for this, but it seems by default if i uninstall / reinstall
sudo apt update
sudo apt install nodejs

this is the highest version available ..... mmm

Yes, that is the problem. As mentioned in the docs, Node.js v12 is the minimum version.

assumed a brand new install would have latest version after running uall updates/upgrades .... time to google some more...thx

Have a look on the node.js site for a repo with a newer version.

1 Like

Rasbian is based on Debian which is very conservative in what it includes.