Solved MMM-Tools is not being displayed after update to MM 2.17.1
-
Hi,
i recently updated from 2.16.0 to 2.17.1 and MMM-Tools stopped being displayed on my mirror. All other modules are beeing displayed.These are the errors I found in the log:
0|MagicMirror | [04.10.2021 09:07.15.554] [ERROR] 0|MagicMirror | (node:13630) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (1) 0|MagicMirror | at Object.writeFile (fs.js:1436:5) 0|MagicMirror | at /home/pi/MagicMirror/modules/MMM-Tools/node_helper.js:308:29 0|MagicMirror | at new Promise (<anonymous>:null:null) 0|MagicMirror | at Class.getRecordUptime (/home/pi/MagicMirror/modules/MMM-Tools/node_helper.js:295:12) 0|MagicMirror | at Class.startScan (/home/pi/MagicMirror/modules/MMM-Tools/node_helper.js:50:54) 0|MagicMirror | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Tools/node_helper.js:45:12) 0|MagicMirror | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:109:11) 0|MagicMirror | at Socket.emit (events.js:315:20) 0|MagicMirror | at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22) 0|MagicMirror | at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:428:39 0|MagicMirror | at processTicksAndRejections (internal/process/task_queues.js:75:11) 0|MagicMirror | (Use `electron --trace-warnings ...` to show where the warning was created) 0|MagicMirror | [04.10.2021 09:07.15.557] [ERROR] (node:13630) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) 0|MagicMirror | [04.10.2021 09:07.15.562] [ERROR] 0|MagicMirror | (node:13630) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
How could that be solved?
Thanks in advance, -
Have you tried
npm install
to reinstall? -
Yes, I did. I even deleted and re-installed the module from scratch.
-
can you try
cd MagicMirror/modules/MMM-Tools npm init -y && npm install request --save -y
-
I just tried it, but still not displayed and the same errors in the log.
-
so your saying Tools is not displaying or you MM is not?
-
Only Tools is not being displayed, all other modules are being displayed.
-
im at work so loging off soon have you check config mmm-tools location
-
I have nothing changed in config.js. Here is my config for Tools, which remained unchanged for months:
‘’’
{
module: “MMM-Tools”,
header: “System”,
disabled: false,
position: “top_right”,
config: {
refresh: 1000 * 5,
containerSize: null,
itemSize: null
}
},
‘’’ -
Hi, you have request help in MichMich’s forum
So don’t duplicate and wait response on it but not there
I don’t like your method
Good luck to you
-
bugsounet
-
bugsounet