Read the statement by Michael Teeuw here.
MMM-Toon: ReferenceError: NodeHelper is not defined
-
Hi Guys, I just tried setting up MMM-Toon to show my thermostat on my MM.
Everything has been setup as suggested, including the API key etc from Toon, but when i save my config my screen stays black.When i Putty to my Pi and run PM2 Logs, i get the following error logs:
/home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
0|MagicMir | [29.01.2021 10:26.01.731] [ERROR] Whoops! There was an uncaught exception…
0|MagicMir | [29.01.2021 10:26.01.738] [ERROR] ReferenceError: NodeHelper is not defined
0|MagicMir | at Object. (/home/pi/MagicMirror/modules/MMM-Toon/node_helper.js:11:18)
0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:968:30)
0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:986:10)
0|MagicMir | at Module.load (internal/modules/cjs/loader.js:816:32)
0|MagicMir | at Module._load (internal/modules/cjs/loader.js:728:14)
0|MagicMir | at Function.Module._load (electron/js2c/asar.js:748:26)
0|MagicMir | at Module.require (internal/modules/cjs/loader.js:853:19)
0|MagicMir | at require (internal/modules/cjs/helpers.js:74:18)
0|MagicMir | at loadModule (/home/pi/MagicMirror/js/app.js:134:17)
0|MagicMir | at loadNextModule (/home/pi/MagicMirror/js/app.js:169:5)
0|MagicMir | [29.01.2021 10:26.01.741] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
0|MagicMir | [29.01.2021 10:26.01.743] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
0|MagicMir | [29.01.2021 10:26.02.399] [WARN] (electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently “false”. It will change to be “true” in Electron 9. For more information please check https://github.com/electron/electron/issues/18397Does anyone have a clue? Or can point me in the right direction?
-
@Nymeia Try to add this on beginning of node_helper
const NodeHelper = require('node_helper'); -
@Nymeia said in MMM-Toon: ReferenceError: NodeHelper is not defined:
:11:18)
Thank you, this solved it!
-
@Nymeia You’re Welcome.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login