• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Toon: ReferenceError: NodeHelper is not defined

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 599 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    Nymeia
    last edited by Jan 29, 2021, 9:31 AM

    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/18397

    Does anyone have a clue? Or can point me in the right direction?

    L 1 Reply Last reply Jan 29, 2021, 9:40 AM Reply Quote 0
    • L Offline
      lolo @Nymeia
      last edited by Jan 29, 2021, 9:40 AM

      @Nymeia Try to add this on beginning of node_helper

      const NodeHelper = require('node_helper');
      
      1 Reply Last reply Reply Quote 0
      • N Offline
        Nymeia
        last edited by Jan 29, 2021, 11:22 AM

        @Nymeia said in MMM-Toon: ReferenceError: NodeHelper is not defined:

        :11:18)

        Thank you, this solved it!

        L 1 Reply Last reply Jan 29, 2021, 11:29 AM Reply Quote 0
        • L Offline
          lolo @Nymeia
          last edited by Jan 29, 2021, 11:29 AM

          @Nymeia You’re Welcome.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy