MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Is node_helper really required?

    Troubleshooting
    2
    4
    1584
    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.
    • E
      E3V3A last edited by E3V3A

      I see a lot of people putting: const NodeHelper = require("node_helper"); in their node_helper.js file. Is this right or even necessary?

      It doesn’t make much sense to state that a file require itself! And if it is referring to MM’s internal node_helper, then shouldn’t the MM core be made to recognize this by itself?

      I’m asking, because doing that, make your npm-check always complain about node_helper not being installed or missing.

      "Everything I do (here) is for free – altruism is the way!"
      MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

      1 Reply Last reply Reply Quote 0
      • E
        E3V3A last edited by E3V3A

        It is not, and should not, AFAICT.

        "Everything I do (here) is for free – altruism is the way!"
        MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

        strawberry 3.141 1 Reply Last reply Reply Quote 0
        • strawberry 3.141
          strawberry 3.141 Project Sponsor Module Developer @E3V3A last edited by

          @E3V3A that is not true.

          A node helper is not required for a module, but if a module has a nodehelper this statement required, because it imports this file into your node helper https://github.com/MichMich/MagicMirror/blob/master/modules/node_modules/node_helper/index.js

          Please create a github issue if you need help, so I can keep track

          E 1 Reply Last reply Reply Quote 1
          • E
            E3V3A @strawberry 3.141 last edited by

            @strawberry-3.141 Oh!? That is funny, because I removed it, and there is no change in anything, module ran fine without it. Perhaps because I’m not using most of the content from that file, while the rest is already defined?

            "Everything I do (here) is for free – altruism is the way!"
            MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy