Hi,
I've managed to create some weird linux PC crash / chain reboots with this fc block:
[{"id":"ceaa5ed4a9a46894","type":"function","z":"c6fc212c195885df","name":"save to context","func":"/*\nconst propertyName = Object.keys(msg)[0];\nconst propertyValue = msg[propertyName];\nconst contextKey = `${propertyName}-${propertyValue}`;\nflow.set(contextKey, msg.status)\n*/\n\nif (msg.table_act) {\n var arr1 = []\n for (var i=0; i++; i<35) {\n const contextKey = `table_act-${i}`;\n arr1.push(flow.get(contextKey, msg.status))\n }\n for (var i = 99; i++; i < 102) {\n const contextKey = `table_act-${i}`;\n arr1.push(flow.get(contextKey, msg.status))\n }\n global.set('mattress_on', arr1)\n}\nreturn null;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1040,"y":460,"wires":[[]]}]
Linux Debian 12
Node-RED v3.0.2
uibuilder v6.5.0
Anyway, after I phisicaly disconnected the ethernet cable I was able to connect to the Node-RED once again and remove uibuilder input link.
But, after that I can't get uibuilder to load any library or index.js file. I've checked if the files are still in their place and they are and I can access them with no problem. CSS loads because I do see a background, but nothing else from HTML
Let me show you the errors first:
And here is the index.html file:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>.....</title>
<link rel="icon" href="./resources/viking.png">
<!-- #region Supporting CSS. -->
<link type="text/css" rel="stylesheet" href="../uibuilder/vendor/bootstrap/dist/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="../uibuilder/vendor/bootstrap-vue/dist/bootstrap-vue.css" />
<link type="text/css" rel="stylesheet" href="./index.css" media="all"><!-- Your own CSS -->
<!-- #endregion -->
<!-- #region Supporting Scripts. These MUST be in the right order. Note no leading / - socket.io no longer needed -->
<!--<script defer src="../uibuilder/vendor/socket.io/socket.io.js">/* OLD */</script>-->
<script defer src="../uibuilder/vendor/vue/dist/vue.js">/* prod version with component compiler */</script>
<script defer src="../uibuilder/vendor/bootstrap-vue/dist/bootstrap-vue.js">/* remove 'min.' to use dev version */</script>
<script defer src="../uibuilder/vendor/vega/build/vega.js"></script>
<script defer src="../uibuilder/vendor/vega-embed/build/vega-embed.js"></script>
<script defer src="../uibuilder/vendor/apexcharts/dist/apexcharts.js"></script>
<script defer src="../uibuilder/vendor/vue-apexcharts/dist/vue-apexcharts.js"></script>
<script defer src="../uibuilder/vendor/http-vue-loader/src/httpVueLoader.js"></script>
<script defer src="../uibuilder/vendor/vue-router/dist/vue-router.js"></script>
<!--<script src="./uibuilderfe.js">/* REQUIRED: remove 'min.' to use dev version */</script>-->
<script defer src="../uibuilder/uibuilder.iife.js">/* OLD */</script>
<script defer src="./index.js">/* OPTIONAL: Put your custom code in that */</script>
<!-- #endregion -->
</head>
<body>
<div id="app" class="uib" v-cloak><!-- All UI code needs to be in here -->
<Navbar></Navbar>
<div class="sbar">
<router-view></router-view>
</div>
</div>
</body>
</html>
Anyone knows why is this happening?